Am trying to do some calculation between two matrix. unfortunately i keep getting this error. Other methods that i have tried such as bsxfun(@times run my computer into space. Any help given will be much appreciated. Here is the line of code
val = load ('edata.txt'); for data=2:1:length(val)-1 if(val(data) > val(data-1) & val(data) > val(data+1) & val(data) > 4) val1(data) = 1; else val1(data) = 0; end endfigureplot((val-min(val))/(max(val)-min(val)), '-g'); title('\bf Prominent Detection Peaks');hold onstem(val1'.*((val-min(val))/(max(val)-min(val)))', ':k');hold off
The of dimension of val1 = 1×7167 and val contain 7168×1 Thanks in advance
Best Answer