I get an error and what caused it? - Function Plotting
조회 수: 1(최근 30일)
표시 이전 댓글
I get an error. What caused it and how do I fix it?

Here my code:
t = -5:0.1:5;
y = ((2.*cos(x)+exp(-0.4.*x))./(0.2.*x+exp(-0.2.*x))) + ((4.*x)./3);
plot(t,y);

Edit: Typo correction.
채택된 답변
KSSV
2022년 1월 6일
Are you looking for this?
x = -5:0.1:5;
y = ((2.*cos(x)+exp(-0.4.*x))./(0.2.*x+exp(-0.2.*x))) + ((4.*x)./3);
plot(x,y);
추가 답변(0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!