フィルターのクリア

this is my code and it has a problem while calculating kafa=y2/y12

1 回表示 (過去 30 日間)
waqas muhammad
waqas muhammad 2018 年 1 月 17 日
コメント済み: per isakson 2018 年 1 月 17 日
kafa=y2/y12. but it gives error.. Matrix dimensions must agree.
  4 件のコメント
Walter Roberson
Walter Roberson 2018 年 1 月 17 日
You probably need y2./y12
waqas muhammad
waqas muhammad 2018 年 1 月 17 日
but it gives error.. dimensions must agree

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

採用された回答

per isakson
per isakson 2018 年 1 月 17 日
編集済み: per isakson 2018 年 1 月 17 日
Error using /
Matrix dimensions must agree.
>> whos y2 y12
Name Size Bytes Class Attributes
y12 1x450 3600 double
y2 15x1 120 double
>>
  9 件のコメント
per isakson
per isakson 2018 年 1 月 17 日
I don't understand the meaning of your comment.
per isakson
per isakson 2018 年 1 月 17 日
It would help if you make an implementation based on nested for-loops.

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

その他の回答 (2 件)

waqas muhammad
waqas muhammad 2018 年 1 月 17 日
bsxfun(@rdivide,A,B(:))... this can solve my problem but the number of elements in row and column are different now. so what can i do for this problem?

waqas muhammad
waqas muhammad 2018 年 1 月 17 日
sir, y2 is 15x1 while y12 is 450x1, kafa=y2/y12. i need the result of y2/y12. i mean, row to column division,not elementwise division. y2 has 15 rows while y12 has 450 columns. now i need to divide these 15 rows of y2 by 15 columns of y12.

カテゴリ

Help Center および File ExchangeLinear Algebra についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by