How to plot a trinomial graph
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposte (1)
Are Mjaavatten
il 22 Feb 2021
Modificato: Are Mjaavatten
il 22 Feb 2021
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 Commenti
Vedere anche
Categorie
Scopri di più su Graph and Network Algorithms in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!