Plotting multiple equations in one plot
이전 댓글 표시
I am trying to create my own plot of the following and can't seem to get it right. I can't figure out how to plot the equations for both r and 1/l, I only seem to plot an equation for either r or 1/l.

I used 'linspace' to get an even 100 points for both r and 1/l.
The equations I'm trying to plot are as follows:
V/c = ln(l) - (1/r)*(1-1/l), for V/c = 0.5 & 1
nmax + 1 = r*l, for nmax+1 = 8 & 4
tb/Isp = (1/r)*(1-1/l), for tb/Isp = 1 & 0.5
Any help would be greatly appreciated!
댓글 수: 3
Benjamin Thompson
2022년 2월 8일
Can you post your work so far? Are you using "hold on" to let the plot take a second set of data?
Gavin Hutchins
2022년 2월 8일
Benjamin Thompson
2022년 2월 10일
You would use
plot(1./l, r)
The vectors for l and r must be the same length. You cannot have a value of zero in l when you calculate 1/l of course.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!