Thanks to both of you for your feedback.
How to plot a small secton of a mat fle.
Let us plot the simple function y x for the range of values for x from 0 to 100 with an increment of 5.
Sean your code of course works and is the correct answer to my question although it did not solve my problem.
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.
Create a script file and type the following code x 0 5 100.
The third and fourth variables topomap1 and topomap2 are both arrays containing topography data load the elevation data from the third column of each variable into a field of the structure array s for each field specify a field name that is the original variable name prefixed by elevationof.
I need to plot some data which is contained within the mat file podaci mat that is attached.
I did the textscan but how do you use the plot function with those x and y coordinates.
Varlist is a cell array containing the names of the four variables in topography mat.
The file contains 7 structures each one is a different type of measurement.
The problem is whenever i try to plot it gives me a figure with 2 curves.
That mat file was produced by commercially available software exporting data into a matlab readable file.
In this example we will draw two graphs with the same function but in second time we will reduce the value of increment.
I mistakenly did a mesh graph.
Thus in each figures it represents only one set of data.
I want to plot column 1 x axis against column 2 y axis.
By the way in this spectrum mat file there are two columns e g x axis frequency and y axis scale and 401 rows.
Now i need to plot all of those 6332 data for all 7 structures data in their fifth column where on the y axis there will be those data and on the x.
I was looking to plot a graph with the said x and y coordinates as the scale.
My intention is to use two sets of data and plot it in the same figures if possible figure 1 and figure 2.
I have created a mat file variable and it contains 2 columns each one has 11 numbers.
Sadly you do not get to work straight away with simple examples in real life.
I m very lost on how to plot out a graph with the said x and y scales.
Plot x y when you run the file matlab displays the following plot let us take one more example to plot the function y x 2.