| john l 2005-04-23, 3:59 pm |
| Edited from previous!! Please help!
Hey again,
Okay here is the situation so far!!:
I have a structured matrix <1x43>struct called "2005bank" which contains 43
sets of batch fermentation data.
This structured matrix contains 43 structured matrices of the form
<1x1>struct (i.e. 43 times.. <1x1><1x1><1x1>...etc.)
Each of these <1x1> structured matrices contains 4 columns of data (of
different row length, Y) which refer to a specific batch fermentation. Each
of these are called "ferm" (i.e. field: ferm is a <Yx4> matrix.
In order to plot column 1 against column 2 for each of the 43
fermentation batches I have created the following code:
[color=darkred]
I AM HAVING 2 PROBLEMS WITH THIS:
i) It only plots the last graph .i.e. batch 43. I understand I need to use
the "hold-on command". Does anyone know how I can implement this into my
code and maybe have add a different colour for each line?????
ii) Some of my data is missing so and I have used a value of 9999 in my
matrix. When I plot the graphs it actually plots this value as 9999 and
messes up my plot! How do I get matlab to ignore this missing data when
plotting values? Do I use a different symbol so Matlab understands data is
"missing" and will will not plot this point?
Kind regards. Hope someone can help here!
John
|