Communication through MATLAB is always better than arguing.

Answered

Imaginary Number Notation/ Formatting Real and Complex Results

The imaginary part might not be exactly zero. vpa(Answer)

Imaginary Number Notation/ Formatting Real and Complex Results

The imaginary part might not be exactly zero. vpa(Answer)

ongeveer 20 uur ago | 1

Answered

Why am I getting a 3x3 array when only using 3x1's in the equation?

./

Why am I getting a 3x3 array when only using 3x1's in the equation?

./

ongeveer 20 uur ago | 0

Answered

Find equal value in two cell arrays

Wanted = find(cellfun(@isequal, A, B))

Find equal value in two cell arrays

Wanted = find(cellfun(@isequal, A, B))

ongeveer 20 uur ago | 0

| accepted

Answered

Beginning matlab user error, functions

Take that fminsearch() outside of the function doc function % see how to use functions

Beginning matlab user error, functions

Take that fminsearch() outside of the function doc function % see how to use functions

ongeveer 22 uur ago | 0

| accepted

Answered

sin() - Subscript indices must either be real positive integers or logicals.

clear sin % since it's a variable

sin() - Subscript indices must either be real positive integers or logicals.

clear sin % since it's a variable

1 dag ago | 1

| accepted

Answered

How do I simplify the values of a function?

>> a a = 2 >> b b = 4 >> syms x f(x) = a*b + b*x f(x) = 4*x + 8 >>

How do I simplify the values of a function?

>> a a = 2 >> b b = 4 >> syms x f(x) = a*b + b*x f(x) = 4*x + 8 >>

1 dag ago | 0

Answered

2 Scenario Legend Setup

plot(1:5, '-k') hold on plot(6:10, ':y') legend({'Leg 1', 'Leg2'}) %?

2 Scenario Legend Setup

plot(1:5, '-k') hold on plot(6:10, ':y') legend({'Leg 1', 'Leg2'}) %?

2 dagen ago | 0

Answered

How to write delta in matlab?

<https://www.mathworks.com/help/symbolic/sym.dirac.html>

How to write delta in matlab?

<https://www.mathworks.com/help/symbolic/sym.dirac.html>

4 dagen ago | 0

Answered

How to get == to help solving equations

You should have the Symbolic Math Toolbox and the license for it to perform the above operation. In order to replicate your mess...

How to get == to help solving equations

You should have the Symbolic Math Toolbox and the license for it to perform the above operation. In order to replicate your mess...

5 dagen ago | 0

Answered

How to use blkdiag in 3D matrix

A slight variation: M = cell(size(B, 3), 1); for k = 1 : size(A, 3) M{k} = blkdiag(A(:, : , k), B(:, :, k)); end M =...

How to use blkdiag in 3D matrix

A slight variation: M = cell(size(B, 3), 1); for k = 1 : size(A, 3) M{k} = blkdiag(A(:, : , k), B(:, :, k)); end M =...

5 dagen ago | 0

Answered

How do I add color to text output to the Command Window?

https://www.mathworks.com/matlabcentral/fileexchange/24093-cprintf-display-formatted-colored-text-in-the-command-wind

How do I add color to text output to the Command Window?

https://www.mathworks.com/matlabcentral/fileexchange/24093-cprintf-display-formatted-colored-text-in-the-command-wind

5 dagen ago | 0

Answered

Need help inputting my equation into MATLAB

In line f, M(t) causes the error perhaps you mean‘t M*t ?

Need help inputting my equation into MATLAB

In line f, M(t) causes the error perhaps you mean‘t M*t ?

6 dagen ago | 0

Answered

How to store value of for loop in a array

for z = linspace(0, 0.03, 31) By the way you don’t need a Loop it’s simply: A = 1 ./ (1 + ((z / aes) .^ 2))

How to store value of for loop in a array

for z = linspace(0, 0.03, 31) By the way you don’t need a Loop it’s simply: A = 1 ./ (1 + ((z / aes) .^ 2))

6 dagen ago | 0

Answered

solve first-order ODE

ode = @(t, Y) sin( exp(Y - t/2) - t^2/2 ) ode45(ode, [0 2*pi], 0)

solve first-order ODE

ode = @(t, Y) sin( exp(Y - t/2) - t^2/2 ) ode45(ode, [0 2*pi], 0)

6 dagen ago | 0

Answered

Creating an array of dependent symbolic variable

A(x) = str2sym(regexprep(char(A), '(\_?\d)+', '$0(x)'))

Creating an array of dependent symbolic variable

A(x) = str2sym(regexprep(char(A), '(\_?\d)+', '$0(x)'))

7 dagen ago | 0

| accepted

Answered

splitting up numbers in a cell of a double

Wanted = vertcat(cell_array{:}) %or Wanted = cat(1, cell_array{:})

splitting up numbers in a cell of a double

Wanted = vertcat(cell_array{:}) %or Wanted = cat(1, cell_array{:})

7 dagen ago | 0

Answered

How can I asign columns of a matrix to different matrixes?

permute(reshape(matrix, 154, 558, []), [2, 1, 3])

How can I asign columns of a matrix to different matrixes?

permute(reshape(matrix, 154, 558, []), [2, 1, 3])

7 dagen ago | 1

| accepted

Answered

substitute only first derivative in symbolic toolbox

I remember doing vibration analysis, used to be pretty tricky: expr2 = subs(expr, diff(x, 2), diff(v))

substitute only first derivative in symbolic toolbox

I remember doing vibration analysis, used to be pretty tricky: expr2 = subs(expr, diff(x, 2), diff(v))

8 dagen ago | 0

| accepted

Answered

MATLAB Answers Wish-list #5 (and bug reports)

When someone tries to answer a homework question (when it has a tag), it could restrict the answered to post the full solution(s...

MATLAB Answers Wish-list #5 (and bug reports)

When someone tries to answer a homework question (when it has a tag), it could restrict the answered to post the full solution(s...

8 dagen ago | 0

Answered

If statement for the structure in table

FIND_rows_of_A = find(strcmp(T.alphabet, 'A')) %or FIND_rows_of_A = find(ismember(T.alphabet, 'A')) [Alphabets, ~, c] = uniqu...

If statement for the structure in table

FIND_rows_of_A = find(strcmp(T.alphabet, 'A')) %or FIND_rows_of_A = find(ismember(T.alphabet, 'A')) [Alphabets, ~, c] = uniqu...

8 dagen ago | 0

| accepted

Answered

How to enter variable names into plot title (R2019a)

title(sprintf('2D Gaussian when mean is %.2f and standard deviation is %.2f', m(ii), s(ii)))

How to enter variable names into plot title (R2019a)

title(sprintf('2D Gaussian when mean is %.2f and standard deviation is %.2f', m(ii), s(ii)))

8 dagen ago | 0

| accepted

Answered

Identify a number in a string

Wanted = str2double(regexp(Ans, '(+|-)?(\d+)?\.?\d*', 'match'))

Identify a number in a string

Wanted = str2double(regexp(Ans, '(+|-)?(\d+)?\.?\d*', 'match'))

9 dagen ago | 0

| accepted