View Full Version : multiple data handling
rajeshj
16th March 2005, 09:46 AM
hello,
i want to plot two wavelet spectra of two time series data in a same canvas. how can one open two data sets simultaneously.
thanks
rocksea
16th March 2005, 10:39 AM
In MatLab? Ferret? where?
1.You can assign the two datasets to different variables and use.
In MatLab, just give
>>f1 = netcdf('filename1.nc', 'nowrite');
>>f2 = netcdf('filename1.nc', 'nowrite');
Now filename1.nc and filename2.nc are opened simultaneously.
In Ferret just use
>set data filename1.nc
>set data filename2.nc
Then when you refer the variable give [d=1] or [d=2]
2. In MatLab, if you want to plot two figures in the same canvas,
after plotting the first one, give
>> hold on;
then plot the next.
do >> hold off;
after your job is done.
In Ferret, just add "/overlay" in your command.
rajeshj
16th March 2005, 10:51 AM
sorry, it is in matlab.
in a program, ascii data is used. and some computations are done for wavelet analysis and significance. so in a plot i want to plot two wavelet analysis of two different series of data. there are 5 subprograms and all are linked.
i did 'subplot' for same data. but the same things have to be repeated for two sets of data.
load 'x.dat'
v = x;
rajeshj
16th March 2005, 10:59 AM
and llike. will it work if load another.dat
y=another is applied? dont try it. if anybody has done iit like, please tell
Copyright ©20005 Oceanographers Net