Hello, i have problem with making a graph.
古いコメントを表示
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 件のコメント
darova
2019 年 4 月 13 日
Use . (dot) for elementwise operations
w = pi./(2*t);
Ek = J*w.^2/2;
plot(w,Ek,'or')
Jurij Rudenson
2019 年 4 月 23 日
Jurij Rudenson
2019 年 4 月 23 日
Walter Roberson
2019 年 4 月 23 日
p2 = p1 .* (h1./h2).^g;
回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Networks についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!