How can i plot the graph of b versus a?

4 次查看(过去 30 天)
Deepak d
Deepak d 2018-5-12
评论: Rik 2018-5-17
a=-pi:2*pi/30:pi
b=pi/a^2
  1 个评论
Rik
Rik 2018-5-17
You should really consider learning the tool before you start using it. One of the many free online Matlab tutorials can be found here.

请先登录,再进行评论。

回答(1 个)

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

类别

Help CenterFile Exchange 中查找有关 Get Started with MATLAB 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by