Hi. I have 40 tables that contain dive profiles (Dives.mat). As the sampling rate is 1 second, every datapoint for depth (Dephtm) is 1 second.
Every table has different sizes going from 8000 to 18000 rows. I use the next script to plot all dive profiles at once:
load Dives.matfilePattern = fullfile("Dives.mat");matFiles = dir(filePattern); for k = 1:length(matFiles) baseFileName = matFiles(k).name; fullFileName = fullfile(baseFileName); fprintf(1, 'Now reading %s\n', fullFileName); matData(k) = load(fullFileName); fn = fieldnames(matData);for k=1:numel(fn) plot(matData.(fn{k}).Depthm); hold onendhold off end
And this is the result:
I have a 40 x 1 array with the Age of every diver.
My first question is how I can modify my code to plot a 3D graph where Z are the lines.
And the second, how can I link the Age array into the code to have the 3D graph ordered also by age.
Thanks
Best Answer