MATLAB: Searching for values that a particular variable takes in a single text file

filesearchsearchtext file

Hello,
I need to work on the values that a particular variable takes up at different times in a particular text file. I need these values so that I can compare them with a certain threshold level that I will set in the program. I am a new to MATLAB. Please help.
Thank you.

Best Answer

If your text file contains only numbers, you can use
M=dlmread('YourFilename.txt')