Matlab Question

Thread Starter

Fadel Megahed

Joined Jun 22, 2007
12
When I was creating a plot for a certain application, I managed to modify the X and Y axes, however, I am not really sure how to calculate the average value for the outputs of the y axes and since the code is done to generate 100 different plots, what should i do to generate the averages, standard deviation, maximum and its location for the whole set.

Thanks for your help :)
 

Dave

Joined Nov 17, 2003
6,970
Store the result in a MAT-file and load it as and when you need to update the average, standard deviation etc.

Create the MAT-file by loading all relevant variables into the workspace and then save with the following command:

Rich (BB code):
% Save workspace variables to DATA.MAT in MATLAB current directory

save data.mat
Then write your code to calculate the averages etc:

Rich (BB code):
load data.mat

% Code for calculating average etc

save data.mat
There is an associated overhead with loading and saving MAT-files but this is the easiest way of doing this.

Dave
 

Thread Starter

Fadel Megahed

Joined Jun 22, 2007
12
Dear Dave,

Thanks a lot . U r the man.

Would u help me in this other question plz

Sorry for the constant questions but as I told you this is the first
time that I use matlab on a huge project and its the first time to
use the digital image processing toolbox.

So I have that picture a gif picture that when I open it with Cornell
paint it shows moving lines representing the transparent region that
I have created using the imwrite function of matlab. The strange
thing is that when i read the file by matlab it does not show it,
however, when i opened the file using paint it shows these lines.

So does matlab have imread 'transparentcolor' as it has this option
supported in the imwrite or not?

Plz advise
 
Top