Respondida
Why is fimplicit not plotting x^2 = 0 ??
fplot()

alrededor de 2 años hace | 0

Respondida
How to loop rand number without repition?
doc randperm

alrededor de 2 años hace | 0

Respondida
Function will not run or produce answers
Remove first 2 lines. Your function doesn’t need any input arguments. You must call a function not simply clicking the g...

alrededor de 2 años hace | 0

Respondida
Index a v dimensional matrix from a matrix with v columns and n rows
p(sub2ind(size(p), ind(:, 1), ind(:, 2)) = Dayum % where RHS should be equal to size(ind)

alrededor de 2 años hace | 0

Respondida
How to create large matrix with a pattern of sorts.
Since your homework is to use a loop: M = circshift(fliplr(tril(true(64))) .* [0; 1./(2:64).'], -1, 1);

alrededor de 2 años hace | 0

Respondida
Piecewise function with large time vector
g = ((0<t)&(t<2)) .* t/2 ... +((2<=t)&(t<4)) .* (4./(t.^2))... +((4<=t)&(t<20)) *0.25;

alrededor de 2 años hace | 0

Respondida
error variable a - basic
You don’t have to type >>

alrededor de 2 años hace | 0

Respondida
Error issue with variables
Change ; to ,

alrededor de 2 años hace | 0

Respondida
help with matrix and how to extract rows
Wanted = mat2cell(matrix, repelem(6, numel(matrix)/36)) % not tested celldisp(Wanted)

alrededor de 2 años hace | 0

Respondida
How to get a random vector whose elements arrangement is the same as that of my desired vector
Use the second output of sort() to the newly sorted generated vector as index. [~, ix] = sort(u); N = sort(newly_generated...

alrededor de 2 años hace | 0

Respondida
Calling a variable using a function - basic
Return1 % call it function c1 = rand_val c1 = rand; end function c = Return1 c = rand_val; end

alrededor de 2 años hace | 0

Respondida
How do I create array with values from a specific location within each cell of a cell array.
Wanted = cellfun(@(x) x(1,2), cell_array)

alrededor de 2 años hace | 1

Respondida
How to arrange the values of the matrix according to index number?
A faster version of the other answer: C_new = zeros(numel(A), numel([A, B])); [IX, ix] = sort([A, B]); C_new(:, IX) = [A1, B1...

alrededor de 2 años hace | 0

Respondida
how to get scientific notation out of answer
format longg

alrededor de 2 años hace | 0

Respondida
How can I vectorize this plot?
Not possible without a loop.

alrededor de 2 años hace | 0

Respondida
How to extract before and after a character up to a certain limit?
Before = regexp(str, '(?<=\z)(?:.*)(?=\c)', 'match', 'once') After = regexp(str, '(?<=\c)(?:.*)(?=\z)', 'match', 'once')

alrededor de 2 años hace | 0

Respondida
Trying to figure out how to get the correct answer with an anonymous function
LC < D sqrt(of a negative number) gives complex value

alrededor de 2 años hace | 0

Pregunta

I'm trying out Image Processing Onramp, why can't i get past through 2.2 Grayscale and Color Images: (2/3) Extract Color Planes...

alrededor de 2 años hace | 1 respuesta | 0

### 1

respuesta

Respondida
Print certain values from an array with a condition
ix = find(y == min(y)); fprintf('min value of y = %d\n', y(ix)) fprintf('x value for min y = %d\n', x(ix))

alrededor de 2 años hace | 0

Respondida
find the unkowns in a matrix
B \ zeros(6, 1)

alrededor de 2 años hace | 0

Respondida
Finding the poles in Transfer Function
s = tf('s'); G = 1 / (s * (s + 2) * (s + 4)); pole(G)

alrededor de 2 años hace | 0

Respondida
Extracting specific rows with different content from a large table array
ix = find(TaBle.MatDate == 736958); Wanted = TaBle{(ix-30):(ix+10), :}

alrededor de 2 años hace | 1

Respondida
Specify specific cell in the formula
ix = TaBle.Age == 77; A = TaBle.Age{ix, :} * TaBle.discount_px{ix, :}

alrededor de 2 años hace | 0

Respondida
How to arrange the values of the matrix according to index number?
C_new = zeros(numel(A), numel([A, B])); C_new(:, A) = A1; C_new(:, B) = B1.'

alrededor de 2 años hace | 0

Respondida
How to get a contour plot from the combination of "for loop" and "matrix operation"?
[X, Y] = meshgrid(x, y); Z = X .* Y; contourf(X, Y, Z)

alrededor de 2 años hace | 0

Respondida
How to use a list of indices to extract elements without for loop?
No, you cannot. The alternaternative is to use arrayfun() and co, but it just has an implicit loop. So I would say a loop is muc...

alrededor de 2 años hace | 0