Beantwortet
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 10 Jahre vor | 0

| akzeptiert

Beantwortet
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 10 Jahre vor | 0

Beantwortet
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 10 Jahre vor | 1

| akzeptiert

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

fast 10 Jahre vor | 1

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

fast 10 Jahre vor | 1

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

fast 10 Jahre vor | 4

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

fast 10 Jahre vor | 0

Beantwortet
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 10 Jahre vor | 2

| akzeptiert

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

mehr als 10 Jahre vor | 4

| akzeptiert

Beantwortet
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 10 Jahre vor | 0

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

mehr als 10 Jahre vor | 1

| akzeptiert

Beantwortet
substitute each element of a vector into a matrix without using loop
perhaps something like: f = @(x)[4*x 5 ; 4 2*x]; % Matrix in functional form vector = 1:10; ...

mehr als 10 Jahre vor | 0