フィルターのクリア

Matrix Configuration in Matlab

3 ビュー (過去 30 日間)
Kevin
Kevin 2014 年 7 月 8 日
回答済み: the cyclist 2014 年 7 月 8 日
Hi guys and gals. I have the following equation in Matlab:
TSR_local=r_over_R*TSR;
which then gives the following matrix:
TSR_local =
0.4444
0.8889
1.3333
1.7778
2.2222
2.6667
3.1111
3.5556
4.0000
But when I apply it to the following equation the result is a 9x1 instead of a 1x9: Phi=(2/3)*atan(1/TSR_local);
Phi =
0 0 0 0 0 0 0 0 9.3575
Does anybody know how I can get the desired 9x1 configuration from the second equation? Thanks for the help.
Best regards, Kevin

回答 (1 件)

the cyclist
the cyclist 2014 年 7 月 8 日
Phi=(2/3)*atan(1./TSR_local);
Notice the added dot.

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by