How can i plot the graph of b versus a?

10 visualizaciones (últimos 30 días)
Deepak d
Deepak d el 12 de Mayo de 2018
Comentada: Rik el 17 de Mayo de 2018
a=-pi:2*pi/30:pi
b=pi/a^2
  1 comentario
Rik
Rik el 17 de Mayo de 2018
You should really consider learning the tool before you start using it. One of the many free online Matlab tutorials can be found here.

Iniciar sesión para comentar.

Respuestas (1)

Von Duesenberg
Von Duesenberg el 12 de Mayo de 2018
Is this what you had in mind?
a=-pi:2*pi/30:pi;
b=pi./a.^2;
plot(b,a) %or plot(a,b)

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by