Communication through MATLAB is always better than arguing.

Answered

Data Plotting in a Single Figure

U = setdiff(10 : 10: 100, 80 : 10 : 90); V = 1e2 : 50 : 450; X = sort(randi(400, size(U))); Y = sort(randi(98, size(U))) .*...

Data Plotting in a Single Figure

U = setdiff(10 : 10: 100, 80 : 10 : 90); V = 1e2 : 50 : 450; X = sort(randi(400, size(U))); Y = sort(randi(98, size(U))) .*...

ungefär 2 timmar ago | 0

| accepted

Answered

how to sum a result with multiple values

You literally answered your own question, just use sum() help sum

how to sum a result with multiple values

You literally answered your own question, just use sum() help sum

ungefär 17 timmar ago | 1

| accepted

Answered

Save a double array to a text file

https://www.mathworks.com/matlabcentral/answers/4175-how-to-save-a-matrix-as-text-file#answer_5892

Save a double array to a text file

https://www.mathworks.com/matlabcentral/answers/4175-how-to-save-a-matrix-as-text-file#answer_5892

11 dagar ago | 0

Answered

Can't solve for x with (a = y/x)

syms y a x eqn = a == y/x; s = solve(eqn, x)

Can't solve for x with (a = y/x)

syms y a x eqn = a == y/x; s = solve(eqn, x)

19 dagar ago | 0

Answered

removing rows from a timetable

load combined_observed_vs_sim_timetable combined_data(1 : 12, :) = [ ]

removing rows from a timetable

load combined_observed_vs_sim_timetable combined_data(1 : 12, :) = [ ]

19 dagar ago | 0

Answered

Array indices must be positive integers or logical values.

ii = 0.01:0.02:0.99; w1_temp= ii; w2_temp= 1-ii; Rp_temp= w1_temp*mean(R_2(:,1))+w2_temp*mean(R_2(:,2)); ...

Array indices must be positive integers or logical values.

ii = 0.01:0.02:0.99; w1_temp= ii; w2_temp= 1-ii; Rp_temp= w1_temp*mean(R_2(:,1))+w2_temp*mean(R_2(:,2)); ...

ungefär en månad ago | 0

Answered

Why does contains(var1, var2) find matches in two different string arrays?

ch_names = {'FP1','FPz','FP2','AF7','AF3','AF4','AF8','F7','F5','F3',... 'F1','Fz','F2','F4','F6','F8','FT7','FC5','FC1...

Why does contains(var1, var2) find matches in two different string arrays?

ch_names = {'FP1','FPz','FP2','AF7','AF3','AF4','AF8','F7','F5','F3',... 'F1','Fz','F2','F4','F6','F8','FT7','FC5','FC1...

ungefär en månad ago | 0

| accepted

Answered

Save variable of workspace in another folder

save('C:\Users\Desktop\folder\POWER.mat', 'POWER')

Save variable of workspace in another folder

save('C:\Users\Desktop\folder\POWER.mat', 'POWER')

ungefär 2 månader ago | 2

| accepted

Answered

How do I save filenames in a for loop for later access?

C = cell(nnz(~fn(k).isdir), 1); % before loop function C = filnamn(katalog) % displays the names of all files in given diretor...

How do I save filenames in a for loop for later access?

C = cell(nnz(~fn(k).isdir), 1); % before loop function C = filnamn(katalog) % displays the names of all files in given diretor...

ungefär 2 månader ago | 0

Answered

Why do I get the error "Unrecognized function or variable" with this

I don't know why you deleted your question and changed your name. 1) Why do you name a variable as the same name of a FUNCTION....

Why do I get the error "Unrecognized function or variable" with this

I don't know why you deleted your question and changed your name. 1) Why do you name a variable as the same name of a FUNCTION....

ungefär 2 månader ago | 0

| accepted

Answered

Integral2 Error message

F = @(x,y) x./y + y./x q = integral2(F,1,2,1,4)

Integral2 Error message

F = @(x,y) x./y + y./x q = integral2(F,1,2,1,4)

2 månader ago | 0

| accepted

Answered

How do I indicate phase changes on my velocity versus time plot on MATLAB?

t = [1.85 2.87 3.78 4.65 5.5 6.32 7.14 7.96 8.79 9.69]; d = 10: 10 : 100; v = gradient(d) ./ gradient(t); figure(1) dvdt = g...

How do I indicate phase changes on my velocity versus time plot on MATLAB?

t = [1.85 2.87 3.78 4.65 5.5 6.32 7.14 7.96 8.79 9.69]; d = 10: 10 : 100; v = gradient(d) ./ gradient(t); figure(1) dvdt = g...

2 månader ago | 0

Answered

Error with plotting a function

K = 10; r = .1; t = 0:1:100; solution1 = @(t,y) K .^ (1 - (exp(-t*r))); plot(t,(K.^(1 - (exp(t*r*-1)))), '-b');

Error with plotting a function

K = 10; r = .1; t = 0:1:100; solution1 = @(t,y) K .^ (1 - (exp(-t*r))); plot(t,(K.^(1 - (exp(t*r*-1)))), '-b');

2 månader ago | 0

| accepted

Answered

Specify the y value where the graph should start

%Variabler A_sveip = 2.27; luft_tett = 1.225; %Virkningsgrad v_0k5 = [0:0.5:30.5]; P_0k5 = [0 0 0 0 0 20 30 50 70 95 120 ...

Specify the y value where the graph should start

%Variabler A_sveip = 2.27; luft_tett = 1.225; %Virkningsgrad v_0k5 = [0:0.5:30.5]; P_0k5 = [0 0 0 0 0 20 30 50 70 95 120 ...

2 månader ago | 0

| accepted

Answered

Position of element in a row

Use second output of find() help find

Position of element in a row

Use second output of find() help find

2 månader ago | 0

| accepted

Answered

Breaking equations down into parts while retaining output

atimesb = a * b; ctimesd = c * d; eqn = MyTotal == atimesb + ctimesd

Breaking equations down into parts while retaining output

atimesb = a * b; ctimesd = c * d; eqn = MyTotal == atimesb + ctimesd

2 månader ago | 0

| accepted

Answered

Unrecognized function or variable

Following Steven’s answer would clear that error but you will have a following error, so change that part of your code to the fo...

Unrecognized function or variable

Following Steven’s answer would clear that error but you will have a following error, so change that part of your code to the fo...

2 månader ago | 0

Answered

How do you name single output functions?

result = @(in) in.^2; result = result(1 : 10)

How do you name single output functions?

result = @(in) in.^2; result = result(1 : 10)

2 månader ago | 0

Answered

Subtract rows and Save the outputs in a new column

Use readtable(), diff() and finally writetable().

Subtract rows and Save the outputs in a new column

Use readtable(), diff() and finally writetable().

2 månader ago | 0

Answered

Display symbolic expressions as rational.

syms x sympref('FloatingPointOutput',true); (1/2)*(3*x^2) sympref('FloatingPointOutput',false); (1/2)*(3*x^2)

Display symbolic expressions as rational.

syms x sympref('FloatingPointOutput',true); (1/2)*(3*x^2) sympref('FloatingPointOutput',false); (1/2)*(3*x^2)

2 månader ago | 0

| accepted