Hi,
I want to plot angular velocity against time, I have used linspace to increment the time. For the function to calculate angular velocity i have used function1-w. the graph is returning a blank plot. I am unsure how to plot how the angular velocity as it changes at different times. I have included the code below. Any help would be greatly appreciated.
T = input('Please enter the time period of the plunger(s)');
%Graph for angular Velocity
for t = 0:0.01:T
function1 = (((2*t).*T)/2.*T);
function2 = (function1.*pi);
function3 = ((pi.*B0)/T);
w = (function3.*(cos(function2)));
plot(w,t)
end

 採用された回答

Cris LaPierre
Cris LaPierre 2021 年 11 月 16 日

0 投票

I recommend the following chapters of MATLAB Onramp.
  • 4: vectors & matrices
  • 6: array calculations
  • 9: plotting and
  • 12: programming, specificaly part 2 about for loops

1 件のコメント

ALAN SHANAHAN
ALAN SHANAHAN 2021 年 11 月 19 日
Thanks for the help, will do.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange2-D and 3-D Plots についてさらに検索

製品

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by