Answered
Calculations on every 2nd row in a matrix in sets of 2 rows
matrix(1 : 2 : end, :) - matrix(2 : 2 : end, :) % ?

5 years ago | 0

Answered
How to take Inverse of a 6x6 cell array in MATLAB?
Assuming by inverse you mean *transpose* : C_dry = cellfun(@transpose, C_dry, 'un', 0)

5 years ago | 0

Answered
What is meant by double here ?? is it data type
<https://www.mathworks.com/help/matlab/ref/double.html>

5 years ago | 0

Answered
Error creating matrix using a integer and vector in Matlab
A = x(:) .^ (0:3)

5 years ago | 0

| accepted

Answered
Euler's Cosine and Sine identities
rewrite(A, 'exp')

5 years ago | 1

| accepted

Answered
How do i find the location by using max and find function?
doc max % second output , does what you need

5 years ago | 0

Answered
How to plot function of matrix in MATLAB?
Works, if Z is a matrix.

5 years ago | 1

| accepted

Answered
How do i write it in matlab?
doc sin doc exp doc sqrt doc + doc \

5 years ago | 0

Answered
request integer inputs to put into the function
doc floor % and co

5 years ago | 1

Answered
How to subtract from a vector, have it return a value of zero if the answer is less than zero, and then tell me how much was subtracted?
totalsubtracted = (x(1) < 0) * (y + x(1)) + (x(1) > 0) * (- y + x(1)) % ?

5 years ago | 0

Answered
Soustraction between all line of a matrix
bsxfun(@minus, matrix(:), matrix(:).') % for newer versions bsxfun() is not needed

5 years ago | 0

Answered
Plotting and Vectors Length Regularization
plot(linspace(min(time), max(time), numel(Out)), Out)

5 years ago | 0

Answered
Check for missing argument or incorrect argument data type in call to function 'tf'.
You either don’t have the Control System Toolbox or the license for it.

5 years ago | 3

Answered
How to find out the index number of particular value from three dimensional matrices
V = cell(size(A, 3), 1); for k = 1 : size(A, 3) [R, C] = find(A(:, :, k)); V{k} = [R,...

5 years ago | 0

| accepted

Answered
Apply the interpreter latex just to a part of the legend title
'\\textbf{My quantity $\\alpha_b$ is \\textgreater %d}' % ?

5 years ago | 1

Answered
Generated figures are not opening
shg

5 years ago | 0

Answered
selecting multiple rows from a matrix
matrix([1 : 4, 10], :)

5 years ago | 0

| accepted

Answered
How to create all possible outcome of a set amount of variables?
CombS = perms(1 : 3) How_many = size(CombS, 1)

5 years ago | 0

| accepted

Answered
Write a vector with (for example) 10^-5 kind of numbers
10.^ (-(1:20))

5 years ago | 0

| accepted

Answered
Unable To Convert Expression Into Double Array
E_f = cell(size(Na)); for k = 1:numel(Na) ef = solve(Nc*exp((Ef-Ec)/(k*T))+Na(k)./(1+4*exp((Ea-Ef)/(k*T)))==Nv*exp((Ev-...

5 years ago | 0

| accepted

Answered
what wrong with the script
Remove { } And add end for each for and if.

5 years ago | 0

| accepted

Answered
E = m*c^2 as Symbolic Equation
<https://www.mathworks.com/help/symbolic/sympref.html#mw_b367b708-36b8-40b6-b855-3d9ac5f86824> *Note: Don’t name a variable *...

5 years ago | 0

| accepted

Answered
Degree symbol formatting problems
I certainly do not see that behaviour 2020a.

5 years ago | 0

Answered
How do I check to see if the elements in a matrix are all equal?
a = num2cell(A); isequal(a{:})

5 years ago | 0

| accepted

Answered
how to multiply three matrices that results in a single value.
(A .* B) * C(:) % if it makes any sense?

5 years ago | 0

Answered
Error using input function
You have a custom made function named *input()* which shadows the inbuilt function. Rename it or remove it from the path.

5 years ago | 0

| accepted

Answered
Matlab filters the rows where the first column is the specified string
ix = ismember(Cells(:, 1), 'E1'); Cells(ix, :) Cells(~ix, :) % choose which one you want

5 years ago | 0

Answered
How do i use handles with my local function?
f = @test f(1,2,3) Note: Never assign a variable named as *return* shadows inbuilt function

5 years ago | 0

Answered
Error with array indices
w*

5 years ago | 0

| accepted

Answered
plot corresponding rows of 2 matrices
plot(x.', y.')

5 years ago | 1

| accepted

Load more