Info
Questa domanda è chiusa. Riaprila per modificarla o per rispondere.
My graph will not display
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
P1 = 1.513;
H = 4292;
y = 0:0.1:1
X = ((P1/H)*y) / (1+(1 - (P1/H)*y))
plot (X,y)
xlim([0 0.00001])
ylim([0 1.2])
0 Commenti
Risposte (1)
Ameer Hamza
il 3 Apr 2020
Modificato: Ameer Hamza
il 3 Apr 2020
You need to use element-wise operators. See this: https://www.mathworks.com/help/matlab/matlab_prog/array-vs-matrix-operations.html
P1 = 1.513;
H = 4292;
y = 0:0.1:1;
X = ((P1/H).*y) ./ (1+(1 - (P1/H).*y));
plot (X,y)
0 Commenti
Questa domanda è chiusa.
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!