why i'm getting this error?
古いコメントを表示
why i'm getting this error: Error using * Inner matrix dimensions must agree.
thanks
2 件のコメント
David Fletcher
2018 年 3 月 25 日
編集済み: David Fletcher
2018 年 3 月 25 日
Sounds like you're trying to do inner matrix multiplication rather than element by element multiplication
possibly here: (a line number where the error occurred might be handy)
*an*cos*(2*pi*f0*n.'*t) + *bn*sin*(2*pi*f0*n.'*t
instead of
an.*cos(2*pi*f0*n.'*t) + bn.*sin(2*pi*f0*n.'*t
ocsse
2018 年 3 月 25 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!