Answered
chain rule with symbolic vectors
https://www.mathworks.com/help/symbolic/functionalderivative.html

7 years ago | 0

Answered
How to solve in MATLAB 2018b ???
Remove the ' ' single quote in the equation and change your second equal to sign as == (2018b doesn't support string for equati...

7 years ago | 1

Answered
How to change ode45 from solution for range of values, to solution just for one value?
Just parameterize function (lookup doc): beta=....range of values for beta = beta ode45(@(z,p)fun_z3(z,p,beta), [1 0], [1; 0;...

7 years ago | 1

| accepted

Answered
how to remove header row
t=readtable('FAULTSTATIONS.txt'); % tables by default have variable names so covert to cell table2cell(t)

7 years ago | 0

Answered
Need to understand error message.
Reason: You can't stuff in number f elements in place of one so use cell (containers of the ability to expand [ lookup up cell ]...

7 years ago | 0

| accepted

Answered
fzero, Operands to the || and && operators must be convertible to logical scalar values.
syms x y eqn = y-x-1; f=matlabFunction(solve(eqn,y)); Result=integral(f,1,10) Gives: Result = 58.5000

7 years ago | 0

Answered
How to call differential equations inside function, and solve it ?
for A=A ode45(...) so A changes in every iteration likewise vary the other parameters too end

7 years ago | 0

Answered
Equation of Motion Solution via Runge Kutta
I am not going to check your code , download the file exchange below and adapt it to your needs: https://www.mathworks.com/matl...

7 years ago | 0

Answered
Data load and variable of input problem (automatic)
Variable=load(...) % call load with an output argument type doc load in command window for more explanation

7 years ago | 0

| accepted

Answered
How can I multiply two different sized objects?
omega = linspace(-k*pi/A,k*pi/A,numel(t)); % change your line to this

7 years ago | 1

| accepted

Answered
Add a field to an existing structure
https://www.mathworks.com/matlabcentral/answers/379250-adding-a-new-field-to-a-struct-array#answer_302008

7 years ago | 0

Answered
Subtract one column from another unless NaN
help isnan

7 years ago | 0

Answered
How to fix Error using * Inner matrix dimensions must agree.? the error is in this line : Ptotal=(1/(2*pi))*sum(P(i)).*exp(1i*omega*t);
P=P1.*P2; %remove the last loop Ptotal=(1/(2*pi)).*sum(P).*exp(1i.*omega.*t);

7 years ago | 0

Answered
Why is the lhs function, including the example posted in the MathWorks documentation, not working?
Might happen in the case that x and y are numeric values hanging in the workspace/global workspace so add clear all/clear global...

7 years ago | 2

Answered
Read numbers and characters from text file into a single array
Simpler: format longg T=readtable('sample.txt'); % your text file , attached sample.txt with this answer T=table2cell(T); a=...

7 years ago | 2

| accepted

Answered
Use Plot as function
https://www.mathworks.com/help/matlab/ref/animatedline.html

7 years ago | 0

Answered
How to integrate a vector?
https://www.mathworks.com/help/matlab/ref/trapz.html#bual_zk-5

7 years ago | 0

Answered
How can I number each element of a matrix according to the corresponding ordered position, row by row?
Note: Your A' doesn't correspond to the exact position. See https://www.mathworks.com/help/matlab/ref/sort.html#bt8nojg-1-I A ...

7 years ago | 0

Answered
Shade the area under a anonymous function
f=@(x) sin(1-x.^3) x=0:0.001:2*pi; area(x,f(x))

7 years ago | 0

| accepted

Answered
how to average column 3 when column 1 and column 2 satisfies some condition in matrix
Note: Problem is unclear still. Are you sure about your desired result ? What's the condition ? How did you get 2 2 2 at the end...

7 years ago | 0

Answered
Images exported/saved as pdf or eps not looking correct when physically printed on paper
Try https://www.mathworks.com/matlabcentral/answers/437512-my-script-is-not-publishing-figures-even-though-i-have-used-snapnow#...

7 years ago | 0

Answered
Display for Matlab 2014
https://www.mathworks.com/matlabcentral/answers/121381-r2014a-opens-new-script-editor-for-every-file#answer_128192 https://www....

7 years ago | 0

| accepted

Answered
'm getting this error Warning: Unable to find explicit solution.
syms To Ti Tg m_dot real dT_log=((To-Tg)-(Ti-Tg))/log((To-Tg)/(Ti-Tg)) %%%%%% log mean temperature Q=m_dot*cp*(Ti-To) %%%%%Tot...

7 years ago | 0

Answered
'm getting this error Warning: Unable to find explicit solution.
syms To Ti=30; % example datas Tg=50; cp=20; m_dot=5; Rtotal=50; dT_log=((To-Tg)-(Ti-Tg))/log((To-Tg)/(Ti-Tg)) %%%%%% log ...

7 years ago | 0

Answered
Converting a 2d curve into a 3d curve
plot3() %?

7 years ago | 0

Answered
Finding ratio between two elements of one Array
a(1:end-1)./a(2:end) % without loop

7 years ago | 2

Answered
Finding ratio between two elements of one Array
for i = 1:length(Array)-1

7 years ago | 0

| accepted

Load more