Error using hafmax command,
3 ビュー (過去 30 日間)
古いコメントを表示
I am trying to find the full width at half max of a pulse, I have the code below and it gives the following error. What is it telling me?
hafmax = vals*ymx;%calculates hafmax = [1 rise, 2 fall]
Error using *
Incorrect dimensions for matrix multiplication. Check that the number of columns in the first matrix matches the number of rows in the second matrix. To
perform elementwise multiplication, use '.*'.
Error in EMP_ASCO_Waveform_Analyzer_9_15_r2 (line 180)
hafmax = vals*ymx;%calculates hafmax = [1 rise, 2 fall]
Related documentation
0 件のコメント
採用された回答
Image Analyst
2021 年 10 月 5 日
What does this show
whos vals
whos ymx
Is it possible you wanted an element-by-element multiplication instead of a matrix multiplication:
hafmax = vals .* ymx % Note the dot before the star!
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!