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 Comments

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);
This is the error
@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.

Sign in to comment.

Answers (0)

Asked:

on 28 Nov 2022

Edited:

Jan
on 29 Nov 2022

Community Treasure Hunt

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

Start Hunting!