필터 지우기
필터 지우기

How can I write a rational functions?

조회 수: 4 (최근 30일)
Arda
Arda 2023년 10월 29일
댓글: Arda 2023년 10월 29일
I just started learning MATLAB and I don't know how to write rational functions. The question asks me to record a function every 0.05 seconds during a time period t=[0,20] and the function is v=(10t^2-8t+10)/(5t^2+9t+10). I don't know how to put this function into the code but I know how to record it's values.

채택된 답변

Walter Roberson
Walter Roberson 2023년 10월 29일
Example that is deliberately different than the function you are using. You can study the techniques here and easily write your own code.
t = linspace(-30,30,500);
v = (3*t.^2 - 9*t + 5) ./ (7*t.^3 - 4*t + 3);
plot(t, v)
  댓글 수: 1
Arda
Arda 2023년 10월 29일
Thank you so much for your help. I really appreciate it!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by