What did I do wrong here

5 ビュー (過去 30 日間)
Mutaz Alsomali
Mutaz Alsomali 2018 年 2 月 6 日
コメント済み: Walter Roberson 2018 年 2 月 6 日
clc, clear
T=[cosd(48.81) 1 0 0 0 0 0 0 0;
0 -1 0 0 cosd(48.81) 1 0 0 0;
0 0 1 0 sind(48.81) 0 0 0 0;
-cosd(48.81) 0 0 1 0 0 0 0 0;
-sin(48.81) 0 -1 0 0 0 0 0 0;
0 0 0 -1 -cosd(48.81) 0 0 0 0;
0 0 0 0 -sind(48.81) 0 -1 0 -sind(45);
0 0 0 0 0 0 0 0 sind(45);
0 0 0 0 0 0 0 -1 -cosd(45)];
A=[0; 0; 0; 0; 1800; 1200; 0; 1500; 0];
N1=1:9;
F=T\A;
tbl=[N;F'];
disp(' Member Force')
disp(' No. Lbf')
fprint(' %1i %7.1f\n',tbl)

採用された回答

Walter Roberson
Walter Roberson 2018 年 2 月 6 日
You have
14-tbl=[N;F'];
but 14-tbl is not a valid variable reference to assign in to.
Perhaps you accidentally copied in the "14-" from a line number in something you were looking at?
  2 件のコメント
Mutaz Alsomali
Mutaz Alsomali 2018 年 2 月 6 日
i just but tbl=[N;F']; , is it wron?
Walter Roberson
Walter Roberson 2018 年 2 月 6 日
You have not defined a variable named N.
Also note that the correct function name is fprintf()

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

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by