Error using Matrix dimensions must agree

Hi; everyone , I have data for one month To (Size[37x1]) and Ta (Size [ 31x1 ]) , When I use (To-Ta) this error show Error using - Matrix dimensions must agree. How can I deal with this error.

 採用された回答

Walter Roberson
Walter Roberson 2016 年 11 月 1 日

0 投票

bsxfun(@minus, To, Ta.')

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeMultidimensional Arrays についてさらに検索

質問済み:

2016 年 11 月 1 日

コメント済み:

2016 年 11 月 4 日

Community Treasure Hunt

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

Start Hunting!

Translated by