Getting A Blank Plot From Code
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
I am attempting to plot the relation between two variables, but when I run the plot command, I receive a blank graph. Here is my code:
>> Yp=62e9;
>> Yfca=250e9;
>> yfsi=480e9;
>> d31=-320e-12;
>> a=linspace(0,1);
>> d31eff=-d31./((log(1-a)).*(1./a-0.5));
>> vp=1;
>> d31multi=d31eff.*Yp.*vp./((Yp-Yfca)*vp+Yfca)
>> plot(a,d31multi/d31eff)
0 comentarios
Respuestas (2)
Star Strider
el 21 de Nov. de 2022
It is necessary to do element-wise division in the plot call second argument:
d31multi./d31eff
However there are other problems, and I must defer to you to solve.
Yp=62e9;
Yfca=250e9;
yfsi=480e9;
d31=-320e-12;
a=linspace(0,1);
d31eff=-d31./((log(1-a)).*(1./a-0.5));
vp=1;
d31multi=d31eff.*Yp.*vp./((Yp-Yfca)*vp+Yfca)
Lv = ~isnan(d31multi);
plot(a,d31multi./d31eff)
.
0 comentarios
David Hill
el 21 de Nov. de 2022
Yp=62e9;
Yfca=250e9;
yfsi=480e9;
d31=-320e-12;
a=linspace(0,1);
d31eff=-d31./((log(1-a)).*(1./a-0.5));
vp=1;
d31multi=d31eff.*Yp.*vp./((Yp-Yfca)*vp+Yfca)
plot(a,d31multi./d31eff);%forgot the '.' all ones
0 comentarios
Ver también
Categorías
Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!