I need to solve an equation which is dependent on another equation and get the required plot. How can i do that?
조회 수: 1 (최근 30일)
이전 댓글 표시
I need to code in matlab
채택된 답변
James Browne
2019년 6월 15일
편집: James Browne
2019년 6월 15일
Solve equation 1, store result in a variable, use said variable as input to equation 2? Here is a quick example~
x = 0:0.1:5;
y1 = 2*x + 3;
y2 = 3*y1 - 2;
plot(x,y2)
title('y1 = f(x) y2 = f(y1)')
legend('y2','location','southeast')
xlabel('inputs')
ylabel('outputs')
Hope that helps?
추가 답변 (1개)
참고 항목
카테고리
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!