how to write equation in matlab?
조회 수: 2 (최근 30일)
이전 댓글 표시
how to write equation in matlab to find corresponding graph; equations are given in attached file
댓글 수: 0
채택된 답변
Bastien Rouzé
2017년 8월 16일
You must define all your variables and a time array with a time step " dt ". Then you write R a variable using all constants defined and the time array. Finally, R and the time array should have the same size, so you could plot them using plot(time_array,R)...
for example :
dx = 0.1;
x = 0:dx:10;
cst = 5;
y = cos(x) + cst;
plot(x,y);
댓글 수: 1
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Mathematics and Optimization에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!