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

fast 8 Jahre ago | 0

| accepted

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...

fast 8 Jahre ago | 0

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));

fast 8 Jahre ago | 1

| accepted

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

fast 8 Jahre ago | 1

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...

etwa 8 Jahre ago | 1

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(...

etwa 8 Jahre ago | 4

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

etwa 8 Jahre ago | 0

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

mehr als 8 Jahre ago | 2

| accepted

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

mehr als 8 Jahre ago | 4

| accepted

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...

mehr als 8 Jahre ago | 0