I have a list of numbers in a column vector. In those numbers i have an alphabet M which appears at random intervals..
this link How to delete zero components in a vector in Matlab? display how to remove the Zero, i tried to adapt how to remove M, but in vain.!
How do I replace this M by 0? I tried this code but to no avail.!
I called all my sample data N.
N=[4.6 6.7 4.1 3.1 M 2.6]
N(N==M) = []; i also tried this code sample=N(N~=M);
My real data is loaded from a text file:
filename='x.txt';
N=importdata(filename)