Respondida
How to find the row and column of elements where the value of A is the same as B
[i,j] = find(A==B);

alrededor de 10 años hace | 0

Respondida
How to assign user entered values(integers entered in an edit text box) to an already user entered string in a listbox of MATLAB GUI? . Your support would be very useful.
Let's say that _h_list_, and _h_text_, are the handles to your listbox and textbox, respectively (which you have already creat...

alrededor de 10 años hace | 0

Respondida
If a=[1 2 3], b=[10 20 30], how to create c=[10 20 20 30 30 30]?
c = cell2mat(arrayfun(@repmat,b,ones(size(a)),a,'uni',0));

alrededor de 10 años hace | 1

Respondida
how can i make a music using matlab??
Or you could go all modern and synthesize your own: fs=16384; % sampling frequency T=10; % 10-second son...

alrededor de 10 años hace | 1

Respondida
Appending to the field of a structure array
Assuming that you want _Index_ to be a single struct with fields _Words/Documents/Locations_ (each of the fields being a cell ar...

alrededor de 10 años hace | 1

Respondida
Find first element in each row greater than a given element from another matrix.
Something like this would also work: cond = bsxfun(@gt,A,B); [ok,idx] = max(cond,[],2); C = ok.*A((1:numel(idx))'+numel(...

alrededor de 10 años hace | 4

Respondida
Magic of Fourier Transform ???
Reconstructing the video using only phase information is just the same as whitening the spatio-temporal spectrum. Since natural ...

alrededor de 10 años hace | 0

Respondida
non zero rows per column
If I understand your question correctly this should do: [a,b]=sort(A>0,1,'descend'); B=a'.*b';

más de 10 años hace | 2

Respondida
How to set all elements in a 2D Matrix between two indices to "1" in each row
cumsum(A,2)==1|A;

más de 10 años hace | 4

Respondida
Solving/plotting a nonlinear equation for multiple values
Perhaps something like: f = @(x,P)2*sqrt(P)*x^1.5 + .10905*x- 0.0363; P = .1:.1:100; x0 = 0.1; [x,fval] = arrayfun(@(P...

más de 10 años hace | 0

Respondida
Handles returning multiple outputs
I do not see how to do this using purely anonymous functions, but if that is not a requirement you could simply create a new fun...

más de 10 años hace | 1