What is the possible MATLAB code that plots this function?

8 次查看(过去 30 天)
As I am fairly new to the matlab, I really apologize for asking this question but I would appreciate any answer as I am learning
I need to know the MATLAB function that plots the following function
y = 1/(a-b*x)
where x changes in increments of 1, and a=2, b=3
take x from 1 to 10.
Thank you very much guys for your help in advance.
Sincerely

采纳的回答

Walter Roberson
Walter Roberson 2013-11-5
Initialize your variables. Create x as a vector. Calculate y. plot() the result.
Caution: in MATLAB you will need to use ./ instead of / to do the division in your formula.
  1 个评论
Andere
Andere 2013-11-5
Thank you very much Sir. Yes I was having a problem with the division / it was giving me error but now it worked ./ Thank you so much

请先登录,再进行评论。

更多回答(0 个)

类别

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

标签

Community Treasure Hunt

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

Start Hunting!

Translated by