matrix dimentions must agree

8 ビュー (過去 30 日間)
kyle lyth
kyle lyth 2011 年 5 月 5 日
T = [0.8 -0.7]
E=2e4*[1; 1; 1];
A=1*[1; 1; 1];
temp_coef = [0 0 0 ];
change_temp = [0; 0; 0 ];
fab_error = [0; 0; 0 ];
F0 = -T * (A(nodei)*E(nodei)*((temp_coef(nodei) * change_temp(nodei)) + ( fab_error(idof) / L )))
nodei is computed elsewhere and selects the correct value from the matrix, the code is part of a loop where nodei will go from 1 to 3, thanks in advance, please ask if i have said enough information and i will try to get back or post if i find the answer else where thank you
hi everyone... could anyone try and explain to me how this isn't working??.. im lost at it .. thanks in advance kyle
  1 件のコメント
Robert Cumming
Robert Cumming 2011 年 5 月 5 日
what is the error you are getting.
What is L?
What is idof?

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

回答 (1 件)

kyle lyth
kyle lyth 2011 年 5 月 5 日
hi sorry.. it was a little vague.. ive got it to work now, it was just a typing error for all nodei i had it as nodie above, sorry for the rather rubbish post kyle

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by