graph (some basic)
이전 댓글 표시
I wanna know if we wish to plot graph and its based on some equations result, of for example Temperature vs time.. and the values I wish to have on X as (t:dt:tend) and this values are inputs..to draw graph for y axis as calculated value of Temperature..
I am trying this way
x = [t : dt: tend];
y = Tn;
figure
plot(x, y, 'r')
But I am not getting the result; because I learned that y got to be the function of x, but I dont know what to use as if u use f(x) its not accepting here, so what else I can do
댓글 수: 4
Geoff Hayes
2020년 5월 19일
Nishaben - what is Tn? Is that a function or a variable?
Walter Roberson
2020년 5월 19일
Probably
x = t : dt: tend;
y = Tn(x);
figure
plot(x, y, 'r')
Nishaben Desai
2020년 5월 20일
편집: Walter Roberson
2020년 5월 20일
Nishaben Desai
2020년 5월 20일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Timing and presenting 2D and 3D stimuli에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!