Hello, i have problem with making a graph.

조회 수: 6 (최근 30일)
Jurij Rudenson
Jurij Rudenson 2019년 4월 13일
댓글: Walter Roberson 2019년 4월 23일
i want to plot a graph with Y-axis Ek (named Kinetic energy) and X-axis (Time). and i need to plot every t value in one graph. every t value (0.6 0.74 ... ) needs to be ploted as a point in the graph. please help me out.
m = 100; L = 1; a = 0.0058;
J = (m*L^2)/3+(m*a^2)/12 %value for equasion.
t = [0.6 0.74 0.86 0.98 1.2 1.37 1.58 1.87] %time points from sample.
w = pi/(2*t)
Ek = J*w^2/2; %kinetic energy.
  댓글 수: 4
Jurij Rudenson
Jurij Rudenson 2019년 4월 23일
but how do i do for this:
p1 = 101325;
h1 = 53.19;
h2 = linspace(52.19, 8.94, 10)
g = 5/3;
slag = h1-h2
p2 = p1 * (h1/h2)^g
h2 has to be from 52.19 to 8.94, and i need to put in into the funktion and i want to get 10 values for p2 for every h2 then plot it into a graph with y-axis p2 and x-axis s and a title "Tryck i funktion av slaglängd".
Would be thankfull for the help!
Walter Roberson
Walter Roberson 2019년 4월 23일
p2 = p1 .* (h1./h2).^g;

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Networks에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by