What is the possible MATLAB code that plots this function?

조회 수: 8 (최근 30일)
Andere
Andere 2013년 11월 5일
댓글: Andere 2013년 11월 5일
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