Matrix Dimensional Error Index error

Can anyone look into this error. I have debugged and fixed the signal error but program is still not running. Most likely the error is coming from the number of columns of prob=percentENER, 43 X52 and how to increase the column size from 52 to 659 as required for the program to run

5 件のコメント

Jan
Jan 2022 年 11 月 28 日
The posted code cannot run: your getmswfeat us a script, but it is called as a function.
Please note that you mention, that there is an error, post a screenshot of an error message and explain, that you have fixed this already. So we do neither have the running code nor the error message. Then suggesting a solution is very hard.
Post the current version of the code and a copy of the error message as text (not as screenshot). Thanks.
Jiri Hajek
Jiri Hajek 2022 年 11 月 28 日
編集済み: Jan 2022 年 11 月 29 日
john amoo otoo
john amoo otoo 2022 年 11 月 28 日
Unrecognized function or variable 'signal'.
Error in getmswtfeat (line 104)
noiseVar = noiseEner/(length(signal(:))-1); % variance of noise to be added
Error in processdata (line 31)
feat_fault = getmswtfeat(DPFD,32,16,100000);
john amoo otoo
john amoo otoo 2022 年 11 月 28 日
This is the error
Jeffrey Clark
Jeffrey Clark 2022 年 11 月 29 日
@john amoo otoo, as indicated in the first comment, the posted code isn't what you are running. In the posted code not only is getmswtfeat a function contained within the same named script file, but throughout it uses signals not signal as you show in the error message.

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

回答 (0 件)

カテゴリ

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

質問済み:

2022 年 11 月 28 日

編集済み:

Jan
2022 年 11 月 29 日

Community Treasure Hunt

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

Start Hunting!

Translated by