if x=[0:0.2:2]; and y=[-0.4:0.1:0.2]; and the equation of y=x/(x+r)-1/(1+r) and r is non linear it is many of curves and the values of r is r=0.1, 1, 10, 100 how can i plot it in matlab please help me i am trying many methods but still has a problem
조회 수: 10 (최근 30일)
이전 댓글 표시
if x=[0:0.2:2]; and y=[-0.4:0.1:0.2]; and the equation of y=x/(x+r)-1/(1+r) and r is non linear it is many of curves and the values of r is r=0.1, 1, 10, 100 how can i plot it in matlab
댓글 수: 6
KALYAN ACHARJYA
2018년 10월 6일
I have answered the question what I have understood, now you can modify the code as per your requirements
채택된 답변
KALYAN ACHARJYA
2018년 10월 6일
편집: KALYAN ACHARJYA
2018년 10월 6일
Are you looking for this one? Considering y is finding function wrt x and r.
x=0:0.2:2;
%y=-0.4:0.1:0.2;
r=[0.1 1 10 100];
for i=1:4
y=x./(x+r(i))-1/(1+r(i));
plot(x,y);
hold on;
end
legend('r=0.01','r=1','r=10','r=100');

추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Get Started with Curve Fitting Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
