How can i plot the graph of b versus a?

a=-pi:2*pi/30:pi
b=pi/a^2

1 Kommentar

Rik
Rik am 17 Mai 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.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Von Duesenberg
Von Duesenberg am 12 Mai 2018

0 Stimmen

Is this what you had in mind?
a=-pi:2*pi/30:pi;
b=pi./a.^2;
plot(b,a) %or plot(a,b)

Kategorien

Mehr zu Get Started with MATLAB finden Sie in Hilfe-Center und File Exchange

Tags

Gefragt:

am 12 Mai 2018

Kommentiert:

Rik
am 17 Mai 2018

Community Treasure Hunt

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

Start Hunting!

Translated by