how do i draw the function of 3t^2+2t-0.5

1 回表示 (過去 30 日間)
Tshimwandi Tshafa
Tshimwandi Tshafa 2021 年 11 月 16 日
回答済み: Gianluca Regina 2021 年 11 月 16 日
it should in blue
with titles

回答 (2 件)

Cris LaPierre
Cris LaPierre 2021 年 11 月 16 日
MATLAB Onramp. Ch 9 covers plotting, but you may need some of the earlier chapters to know how to set it all up.

Gianluca Regina
Gianluca Regina 2021 年 11 月 16 日
t = -10:0.1:10 ;
y = 3*t.^2 + 2*t - 0.5 ;
plot( t , y , 'linewidth' ,1.5)
xline( 0 )
yline( 0 )
xlabel('\bf t', 'Fontsize', 18, 'Fontweight','bold');
ylabel( '\bf y' , 'Fontsize', 18, 'Fontweight','bold');
set(gca , 'Linewidth' , 1.2 ,'Fontsize',18,'FontWeight','bold', 'Box','on')
set(gcf , 'color','w' , 'WindowState' , 'Maximize')
This is plotted from -10 to 10 with a step of 0.1

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by