How to plot a trinomial graph
5 ビュー (過去 30 日間)
古いコメントを表示
Im having trouble plotting a trinomial graph, for the function y = x^3. I wrote out the function and tried the plot command but it wont work really.
0 件のコメント
回答 (1 件)
Are Mjaavatten
2021 年 2 月 22 日
編集済み: Are Mjaavatten
2021 年 2 月 22 日
fun = @(x) x^3;
fplot(fun,[-3,3])
Alternatively:
x = linspace(-3,3);
plot(x,x.^3); % Note the use of .^, for element by element operation as opposed to matrix operation
Please type
doc fplot
doc linspace
doc plot
for more details.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Graph and Network Algorithms についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!