Answered
Indexing Array Elements Using Row Number Stored in another Matrix
Wanted = A(sub2ind(size(A), B, (1:numel(B)).'))

5 years ago | 0

| accepted

Answered
How to obtain array of strings contained in a cell
Wanted = cellarray{:}

5 years ago | 1

Answered
need help with conditional statement
isequal(size(A), size(B))

5 years ago | 0

Answered
Splitting a table into matrices with variing number of colums
Matrix = TablE{:, :}

5 years ago | 0

Answered
Excercises for MATLAB programmimg
Start with MATLAB On-ramp course.

5 years ago | 0

Answered
How to create a new function file using functions and variables available in base workspace?
<https://www.mathworks.com/help/matlab/math/parameterizing-functions.html *Parameterize your function*>

5 years ago | 0

Answered
Subtract constant from each element of a cell array
Or: No_Grav = cellfun(@minus, cellArray , repmat({9.8}, size(cellArray)), 'un', 0)

5 years ago | 0

Answered
Subtract constant from each element of a cell array
No_Grav = cellfun(@(x) x - 9.8, cellArray, 'un', 0)

5 years ago | 3

| accepted

Answered
forループを用いた場合のテーブルの結合
c = cell(2, 1); % 2 represents no of tables for k = 1:numel(c) c{k} = table(rand(10, 1), 'VariableNames', {sprintf('N%d', ...

5 years ago | 1

Answered
Two vectors into matrix with an opeartion?
[a; b(:) - a]

5 years ago | 0

Answered
nested k for loops for a parameter k
<https://www.mathworks.com/help/matlab/math/parameterizing-functions.html>

5 years ago | 0

Answered
Plot a elliptic cone
axis equal

5 years ago | 0

| accepted

Answered
How do I use cdiff function in Matlab 2020?
diff(y)

5 years ago | 0

| accepted

Answered
Undefined variable or function fitrsvm
<https://www.mathworks.com/help/stats/fitrsvm.html#busljl4_seealso> - released in *2015b*

5 years ago | 1

| accepted

Answered
Error using plot Invalid data argument.
Remove (none)

5 years ago | 0

Answered
Save the first non-zero value in each column
(cumsum(matrix) == 1) .* matrix

5 years ago | 0

| accepted

Answered
how to index Vector Position
Second output of min() does that.

5 years ago | 1

| accepted

Answered
Use top axis in a plot
https://www.mathworks.com/matlabcentral/answers/98353-how-can-i-show-both-top-and-bottom-or-left-and-right-axes-tick-labels#answ...

5 years ago | 0

Answered
index multiple columns together on different critera
_“I want to pull out a new matrix with all the rows where column 1 is <0.2 *and* column 2 is >0.2.”_ idx = A(:,1)<0.2 & A(:,...

5 years ago | 0

Answered
matrix to cell conversion
num2cell(matrix, 1).'

5 years ago | 0

Answered
how to modify all elements in a row vector
vector(:) .*(0:numel(vector(:)) - 1)

5 years ago | 0

Answered
Check for missing argument or incorrect argument data type in call to function 'ss'.
Either you don’t have the license for it or you don’t have that toolbox.

5 years ago | 0

| accepted

Answered
multiply vector and matrix
Wanted = cell2mat(a) .* cell2mat(b); celldisp(num2cell(Wanted, 2))

5 years ago | 0

Answered
multiply vector and matrix
Wanted = cellfun(@times, a, b, 'un', 0); celldisp(Wanted)

5 years ago | 0

Answered
multiply vector and matrix
a .* b

5 years ago | 0

Load more