Communication through MATLAB is always better than arguing.

Answered

Undefined function or variable 'imnlmfilt'

It requires Image Processing Toolbox and a valid license for it. Contact your IT department in your University to get the licens...

Undefined function or variable 'imnlmfilt'

It requires Image Processing Toolbox and a valid license for it. Contact your IT department in your University to get the licens...

19 hours ago | 0

| accepted

Answered

Solving symbolic trig equation in terms of theta, using "sol."

The solution is returned in a struct so to access it you need to use the dot. It has occurred that there are two solutions?

Solving symbolic trig equation in terms of theta, using "sol."

The solution is returned in a struct so to access it you need to use the dot. It has occurred that there are two solutions?

1 day ago | 0

| accepted

Answered

lines through markers on legend

x = -10 : 0.1 : 10; y = cos(x); plot(x, y, '--o', 'MarkerSize', 5) hold on y = sin(x) plot(x, y, '--d', 'MarkerSize',...

lines through markers on legend

x = -10 : 0.1 : 10; y = cos(x); plot(x, y, '--o', 'MarkerSize', 5) hold on y = sin(x) plot(x, y, '--d', 'MarkerSize',...

2 days ago | 1

Answered

How to create function handle with matrix inputs, vector output?

FCN = @(x) x(:, 1) + x(:, 2); sum(in, 2) % ??

How to create function handle with matrix inputs, vector output?

FCN = @(x) x(:, 1) + x(:, 2); sum(in, 2) % ??

3 days ago | 0

| accepted

Answered

How to replace multiple elemets at particular index in vector ?

a(3 : 2 : 7) = [.7, .1, .9]

How to replace multiple elemets at particular index in vector ?

a(3 : 2 : 7) = [.7, .1, .9]

3 days ago | 1

| accepted

Answered

extract num and den from matrix transfer function

Use it inside the loops, preallocation is recommended for the variables.

extract num and den from matrix transfer function

Use it inside the loops, preallocation is recommended for the variables.

3 days ago | 0

Answered

How can i get the last element of a maxium with the help of findpeaks?

<https://www.mathworks.com/help/signal/ref/findpeaks.html#bufhxsk-2> It states: _“For the flat peak, the function returns ...

How can i get the last element of a maxium with the help of findpeaks?

<https://www.mathworks.com/help/signal/ref/findpeaks.html#bufhxsk-2> It states: _“For the flat peak, the function returns ...

3 days ago | 0

| accepted

Answered

Error 'Array indices must be positive integers or logical values.' when the number of indices is large

In this case it’s probable that b has elements less than 1 and greater than 32. Outside_bounds = nnz((b < 1) | (b > 32)) % t...

Error 'Array indices must be positive integers or logical values.' when the number of indices is large

In this case it’s probable that b has elements less than 1 and greater than 32. Outside_bounds = nnz((b < 1) | (b > 32)) % t...

5 days ago | 0

| accepted

Answered

fzero or fplot function

The anonymous function should perform element wise operations (warnings for fplot) and (errors for fzero).

fzero or fplot function

The anonymous function should perform element wise operations (warnings for fplot) and (errors for fzero).

5 days ago | 0

Answered

How parentheses effects multiplication with pi ?

In the first the order of operation is from left to right. In the second the order of operation is inside the parenthesis and...

How parentheses effects multiplication with pi ?

In the first the order of operation is from left to right. In the second the order of operation is inside the parenthesis and...

5 days ago | 0

Answered

how to label strings in an array with an ID

T = cell2table(StringID(:, 2)); T.Properties.RowNames = StringID(:, 1); Wanted = T{num2cell(tc), :}

how to label strings in an array with an ID

T = cell2table(StringID(:, 2)); T.Properties.RowNames = StringID(:, 1); Wanted = T{num2cell(tc), :}

6 days ago | 0

Answered

Error while plotting matrix of complex numbers

plot(real(sub), 'r-', imag(sub) ,'b*');

Error while plotting matrix of complex numbers

plot(real(sub), 'r-', imag(sub) ,'b*');

6 days ago | 0

| accepted

Answered

Variable for loop storage

low = cell(numel(lowPs), 1); for k = 1 : numel(lowPs) B = A(:,1) == lowPs(k); %%row numbers in A where A(:,1) that co...

Variable for loop storage

low = cell(numel(lowPs), 1); for k = 1 : numel(lowPs) B = A(:,1) == lowPs(k); %%row numbers in A where A(:,1) that co...

6 days ago | 0

| accepted

Answered

random matrix with a given number of specified elements

v = [repelem(1, 5), repelem(0, 4)]; Wanted = v(reshape(randperm(numel(v)), 3, []))

random matrix with a given number of specified elements

v = [repelem(1, 5), repelem(0, 4)]; Wanted = v(reshape(randperm(numel(v)), 3, []))

7 days ago | 1

| accepted

Answered

How can I randomize the order of a matrix of images

Filenames = compose('image%d.png', 1:4); Filenames(randperm(numel(Filenames))) % ?

How can I randomize the order of a matrix of images

Filenames = compose('image%d.png', 1:4); Filenames(randperm(numel(Filenames))) % ?

7 days ago | 0

Answered

wrong differential equation solution

a1 = matlabFunction(simplify(sol)); a = matlabFunction((1/80)*(36*exp(-t)-35*cos(t)-cos(3*t)+125*sin(t)-3*sin(3*t))); t ...

wrong differential equation solution

a1 = matlabFunction(simplify(sol)); a = matlabFunction((1/80)*(36*exp(-t)-35*cos(t)-cos(3*t)+125*sin(t)-3*sin(3*t))); t ...

9 days ago | 1

Answered

Livescript: equation number

No, the workaround would be to use section titles.

Livescript: equation number

No, the workaround would be to use section titles.

9 days ago | 0

| accepted

Answered

Why does the second matrix start with zeros?

MATLAB assigns zero to the previous indices, for better understanding: clear a a(11) = 1; % now you will see elements fro...

Why does the second matrix start with zeros?

MATLAB assigns zero to the previous indices, for better understanding: clear a a(11) = 1; % now you will see elements fro...

9 days ago | 1

| accepted

Answered

How to remove array items that include a certain substring?

v = regexprep(filetable, '^[a,b].*', ''); v(cellfun('isempty', v)) = []

How to remove array items that include a certain substring?

v = regexprep(filetable, '^[a,b].*', ''); v(cellfun('isempty', v)) = []

10 days ago | 0

Answered

Problem about rounding to 0

w = u_1 * u_2 - u_3 * sym(u_4) Click on the tag floating-point.

Problem about rounding to 0

w = u_1 * u_2 - u_3 * sym(u_4) Click on the tag floating-point.

10 days ago | 1

Answered

How can I get maximum and minimum value with sym variables

Use matlabFunction() and fminbnd() to find the minimum value of that function and to find the maximum extreme use negative sign ...

How can I get maximum and minimum value with sym variables

Use matlabFunction() and fminbnd() to find the minimum value of that function and to find the maximum extreme use negative sign ...

10 days ago | 0

| accepted

Answered

Sorting a matrix using it's index

Asort2 = A(sub2ind(size(A), repmat((1:size(A,1)).', 1, size(A,2)), idA))

Sorting a matrix using it's index

Asort2 = A(sub2ind(size(A), repmat((1:size(A,1)).', 1, size(A,2)), idA))

10 days ago | 0

Answered

How to reshape matrix 2 columns by 2 columns

First = matrix(:, 1:2:end); Second = matrix(:, 2:2:end); Wanted = [First(:), Second(:)]

How to reshape matrix 2 columns by 2 columns

First = matrix(:, 1:2:end); Second = matrix(:, 2:2:end); Wanted = [First(:), Second(:)]

10 days ago | 0

Answered

SUBS function not working properly - R2020a

double(val) %or vpa(val)

SUBS function not working properly - R2020a

double(val) %or vpa(val)

11 days ago | 0

| accepted