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!