What does this command mean?
이전 댓글 표시
What does the following command in the plot parenthesis mean?
ylinscale = ylin*DelF;
plot(tlin,ylin(:,2))
plot(tlin, 150+ylinscale(:,1))
Of course this a system with differential equations, a nonlinear one, and it works fine. But my question is what does it mean to write plot(tlin,ylin(:,2)) and 150ylinscaale? I couldn't find it in help in Matlab. Can you explain it to me please?
Thanks!
답변 (2개)
the cyclist
2017년 9월 11일
1 개 추천
It might be overloaded, but it's likely just the plot command. I'm surprised you couldn't find it, since "help plot" would have turned it up.
댓글 수: 1
Jose Marques
2017년 9월 11일
편집: Jose Marques
2017년 9월 11일
Hello Mr Cyclist. I know that is not very polite but... I wonder if you could help me:
Walter Roberson
2017년 9월 11일
1 개 추천
ylin(:,2) means to extract column 2 of the variable named ylin
plot(tlin, ylin(:,2)) means to draw a plot using tlin as the x axis values, and using column #2 of ylin as the y axis values.
plot(tlin, 150+ylinscale(:,1)) means to draw a plot using tlin as the x axis values, and using 150 more than column #1 of the array ylinscale as the y axis values.
댓글 수: 1
Jose Marques
2017년 9월 11일
Hello Walter. I know that is not very polite but... I wonder if you could help me:
카테고리
도움말 센터 및 File Exchange에서 Annotations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!