Matrix dimensions must agree.
Ältere Kommentare anzeigen
I´m trying to plot this function, which is an analytical solution of a partial equation, the equiation is below. This is my scipt. I don´t why that error is still apearing.

%Data
L=1; %m
p=1; %kg/m^3
G=0.1; %kg/ms
u=0.1; %m/s
%Boundary Conditions
po=1;
pL=0;
x=0:0.1:L;
p_a=((exp.((p*u)/G.*x)-1)./(exp(p*u*L/G)-1).*(pL-po))+po;
plot(x,p_a)
I get this error:
>> p_a=((exp.((p*u)/G.*x)-1)./(exp(p*u*L/G)-1).*(pB-pA))+pA;
Matrix dimensions must agree.
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Descriptive Statistics finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
