Answered
Why does my function output a series of answers that I don't want and have tried my best to supress
Because its your function output [T,Q] =osc_2 will give you two output which you specified when you call osc_2 the output w...

6 years ago | 0

| accepted

Answered
How to draw 3d signal
https://in.mathworks.com/help/matlab/ref/plot3.html figure,plot3(1*ones(1,10),1:10,randn(1,10)) hold on,plot3(2*ones(1,10),1:1...

6 years ago | 0

| accepted

Answered
How can I implement the following blocks and code in function block ?
This is an example of matlab given in integral help % Without For loop fun = @(x,c) 1./(x.^3-2*x-c); q_f = integral(@(x)fun(x...

6 years ago | 0

Answered
How to display only red parts of an image?
You have to get R component which means you have to find out value of R greater than both G and B in RGB data. (May be some thre...

6 years ago | 1

| accepted

Answered
How do I find the function corresponding to a graph image?
Extract Data https://www.mathworks.com/matlabcentral/answers/234118-extract-data-from-png-file After that you can find mathema...

6 years ago | 0

| accepted

Answered
What should I write in the command window for this input of the function?
function[stability,lds]=lds_cal(state,hs,fs,time,n_neighbours, plot) if(plot) figure,plot(time,n_neighbours) % or any two ...

6 years ago | 0

| accepted

Answered
To store plotregression value in a variabe
Suppose the example given below it is matlab example [x,t] = simplefit_dataset; net = feedforwardnet(10); net = train(net,x,...

6 years ago | 1

| accepted

Solved


ZigZag - 05
Given a matrix, print all its elements in the alpha form. For example - a=[16 2 3 13 5 11 10 8 ...

6 years ago

Answered
How to plot impulse response?
X=conv(y,h,'same');

6 years ago | 0

| accepted

Answered
Plot matrix with imagesc
Use text scan to read from text file Use text to write text on figure no_of_word_to_read = 3; %no of columns filename = 'C:\U...

6 years ago | 0

| accepted

Answered
For Loop not plooting with "surf" command
Try this clc Ma = zeros(); Pi = 0; Pinc = 10; Pf = 200; Xi = 0; Xinc = 1; Xf = 180; for P = Pi:Pinc:Pf; for X = Xi:Xin...

6 years ago | 1

| accepted

Solved


Convert a temperature reading from Celsius to an unknown scale
Two of the most famous temperature scales are the Celsius and the Fahrenheit scale. In reality, however, there are so many other...

6 years ago

Solved


Count the number of folds needed to pack a large sheet
In a certain paper factory, large sheets of paper are being made every day. Before sending the sheets for shipment, they have to...

6 years ago

Solved


Sunday bonus
Submit a solution on any Sunday and you will get 10 points. Only for MATLAB fans!

6 years ago

Solved


Sum of series
a(n) = n^2 - (n-1)^2 find the summation of the series upto n i.e. a(1)+a(2)+...+a(n)

6 years ago

Solved


Sky full of stars - 01
Draw a right triangle with asterisks of size n. For example, for n=5 '* ' '** ' '*** ' '**** ' ...

6 years ago

Solved


Sky full of stars - 03
draw the following pattern with asterisks. For example, for n=6 '************' '***** *****' '**** ****' ...

6 years ago

Solved


Find the two-word state names
Given a list of states, remove all the states that have two-word names. If s1 = 'Alabama Montana North Carolina Vermont N...

6 years ago

Solved


Prime factor digits
Consider the following number system. Calculate the prime factorization for each number n, then represent the prime factors in a...

6 years ago

Solved


Find relatively common elements in matrix rows
You want to find all elements that exist in greater than 50% of the rows in the matrix. For example, given A = 1 2 3 5 ...

6 years ago

Solved


Clean the List of Names
Given a list of names in a cell array, remove any duplications that result from different capitalizations of the same string. So...

6 years ago

Solved


Implement a ROT13 cipher
Replace each character in string s1 with the character that is shifted 13 positions from it (wrap back to the beginning if neces...

6 years ago

Solved


Counting Sequence
Given a vector x, find the "counting sequence" y. A counting sequence is formed by "counting" the entries in a given sequence...

6 years ago

Solved


Test for balanced parentheses
Given the input inStr, give the boolean output out indicating whether all the parentheses are balanced. Examples: * If ...

6 years ago

Solved


Scrabble Scores
Given a word, determine its score in <http://en.wikipedia.org/wiki/Scrabble Scrabble>. The input string will always be provi...

6 years ago

Solved


Kaprekar Steps
6174 is the <http://en.wikipedia.org/wiki/6174_%28number%29 Kaprekar constant>. All natural numbers less than 10,000 (except som...

6 years ago

Solved


Alphabetize by last name
Given a list of names in a cell array, sort the list by the last name. So if list = {'Barney Google','Snuffy Smith','Dagwood ...

6 years ago

Solved


Find common elements in matrix rows
Given a matrix, find all elements that exist in every row. For example, given A = 1 2 3 5 9 2 5 9 3 2 5 9 ...

6 years ago

Solved


Maximum running product for a string of numbers
Given a string s representing a list of numbers, find the five consecutive numbers that multiply to form the largest number. Spe...

6 years ago

Solved


Function Iterator
Given a handle fh to a function which takes a scalar input and returns a scalar output and an integer n >= 1, return a handle f...

6 years ago

Load more