AA=Df{1,1};AA(AA<1|AA>1.25)=0;BB=Zf{1,1}; for ii=1:length(AA); if AA(ii)==0 BB(ii)=0; end endAAA=replace(AA,0,[])BBB=replace(BB,0,[])
Zf compliments Df. I am trying to filter data that is between 2 values into a new matrix and then have a matrix with the Zf component matrix that compliments the Df matrix. However, whenever I run this code it gives me the error
First argument must be a string array, character vector, or cell array of character vectors.
Error in Analyze (line 283)
AAA=replace(AA,0,[])
How can I get a filtered matrix of both?
Best Answer