how to plot a single axis graph

Réponses (1)

Walter Roberson
Walter Roberson le 27 Avr 2020

1 vote

Vectorize your code by using .^ instead of ^
You can either define an anonymous function for the calculation, and use fplot() with that, OR you can define x as a list of particular values, and calculate y from there, and plot(x,y)

Catégories

En savoir plus sur 2-D and 3-D Plots dans Centre d'aide et File Exchange

Commenté :

le 14 Mai 2020

Community Treasure Hunt

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

Start Hunting!

Translated by