storing of values in matlab

1 回表示 (過去 30 日間)
nitya ...
nitya ... 2011 年 3 月 18 日
lamda=1 N=6% alpha=60 alpha=deg2rad(alpha); d=0.5 Beta=(2*pi/lamda); theta= 0:0.012:2*pi; w=alpha+Beta*d.*cos(theta); AF=1/N*(sin(N*(w./2))./sin(w./2));
figure polar(theta,AF)
***************** I need the values of theta at different values of AF after plotting.
  1 件のコメント
Andrew Newell
Andrew Newell 2011 年 3 月 18 日
You already have theta and AF. What do you want to do with them?

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

採用された回答

Paulo Silva
Paulo Silva 2011 年 3 月 18 日
change
polar(theta,AF)
to
h=polar(theta,AF)
After that code get the data like this
x=get(h,'Xdata')
y=get(h,'Ydata')
you can plot the data again but without the grid
plot(x,y)
  12 件のコメント
Paulo Silva
Paulo Silva 2011 年 3 月 18 日
Like Jan said you just need to execute:
doc
in the command line, F1 does the same, matlab window menu Help and Product Help
nitya ...
nitya ... 2011 年 3 月 18 日
Thank you very much for your answers.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by