By the way in this spectrum mat file there are two columns e g x axis frequency and y axis scale and 401 rows.
Matlab plot from mat file.
If you do not specify filename the load function searches for a file named matlab mat.
I want to plot mat file.
Thanks to both of you for your feedback.
Construct a matfile object from the mat file example mat.
Learn more about mat file plot command.
The problem is whenever i try to plot it gives me a figure with 2 curves.
If filename has no extension that is no text after a period load looks for a file named filename mat if filename has an extension other than mat the load function treats.
Si el número de filas de la matriz equivale a la longitud del vector.
Filename can include a file extension and a full or partial path.
Esta función de matlab crea un gráfico de líneas 2d de los datos de y frente a los valores correspondientes de x.
By default matfile only permits loading from existing mat files.
Name of file specified as a character vector or string scalar.
Exampleobject matfile example mat.
I have created a mat file variable and it contains 2 columns each one has 11 numbers.
I want to get the graph from the mat file but the graph did not pop out and get the result in command window as shown in the figure 1 below.
I want to plot column 1 x axis against column 2 y axis.
The matlab plot function can actually take an additional third input that tells it what color what type of line and what type of marker dot on each point to use.
This input is given in the form of a string enclosed in single quotation marks that can contain up to three letters symbols.
Could anyone please let me know that why i can t plot this spectrum mat file kindly if someone show me the procedure for plotting mat files.
That mat file was produced by commercially available software exporting data into a matlab readable file.
Sadly you do not get to work straight away with simple examples in real life.