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 个评论

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.
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, 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 Exchange 中查找有关 Matrix Indexing 的更多信息

编辑:

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