What is the possible MATLAB code that plots this function?
7 ビュー (過去 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
0 件のコメント
採用された回答
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.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!