Why doesn't my graph show?

2 次查看(过去 30 天)
chris henkel
chris henkel 2017-12-19
评论: Michal Dobai 2017-12-19
>> x = 50e+12: 10e+12: 150e+12;
>> y = (7.9)*(((2e+14)*x)./((4*x.^2)+(5e+12)));
>> plot(x,y)
i need this to plot like the first plot in my attachment...why doesnt it?
  9 个评论
Michal Dobai
Michal Dobai 2017-12-19
Assuming your formula for y is correct, you can just change your x to:
x = *-50e+12*: 10e+12: 150e+12; %(or even -150E+12)
..and it suddenly looks more like in your assignment. But this is not really MATLAB question, it's more like a physics question and unfortunately I can't help you with that 'physics' part.
Michal Dobai
Michal Dobai 2017-12-19
Also, please avoid posting duplicate questions in future. You can always edit your original question, when you want to add some new information, or write a comment.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Networks 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by