我如何繪制看起來像這樣 (3x^2 5,4x) 的東西,我通常使用 GeoGebra 來繪制它,但我不能放置一個應該看起來像這樣的域 (GeoGebra)
uj5u.com熱心網友回復:
從圖中,您似乎在水平軸上取 3x2 5,在垂直軸上取 4x,因此:
x = -5.5: 0.01: 5.5;
plot(3*x.^2 5, 4*x, 'r');
%other minor adjustments to match with the graph in your post
grid on; grid minor; %to display grid lines
set(gca, 'XAxisLocation', 'origin'); %setting x-axis location to 'origin'
legend('eq2'); %to display the legend
這使:

uj5u.com熱心網友回復:
這樣的事情應該這樣做:
y = -10:0.1:10;
x = 3 * y.^2 5.4 * x;
plot(x, y)
grid on
轉載請註明出處,本文鏈接:https://www.uj5u.com/qukuanlian/451145.html
標籤:matlab
