How can i avoid this: Dimensions of matrices being concatenated are not consistent

1 回表示 (過去 30 日間)
Philipp Mueller
Philipp Mueller 2017 年 2 月 16 日
編集済み: Philipp Mueller 2017 年 2 月 16 日
I understood this error message. But how can avoid it?
My Code:
r_inputdataSigmaX=[3 45 34;34 324 324];
r_inputdataSigmaY=[3 45 34;34 324 324;34 324 324];%is too big
r_inputdataTau=[,];
input_data_rainflow=horzcat(r_inputdataSigmaX,r_inputdataSigmaY,r_inputdataTau);
My idea:
  1. To use another command to combine matrices vertical with different size?
  2. To fill up the smaller matrice with zeros or NaN to get the same size? But how?
Thanks for your help.

回答 (0 件)

カテゴリ

Help Center および File ExchangeLoops and Conditional Statements についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by