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 Kommentare

Jan
Jan am 28 Nov. 2022
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 am 28 Nov. 2022
Bearbeitet: Jan am 29 Nov. 2022
john amoo otoo
john amoo otoo am 28 Nov. 2022
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 am 28 Nov. 2022
This is the error
Jeffrey Clark
Jeffrey Clark am 29 Nov. 2022
@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.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Gefragt:

am 28 Nov. 2022

Bearbeitet:

Jan
am 29 Nov. 2022

Community Treasure Hunt

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

Start Hunting!

Translated by