Hi all
I am trying to combine some matrices, all with the same dimensions but different names. More specifically the quantities I am trying to assess have the same name of variable but a different timestep indicating their recorded time (e.g. Windv_y_20040501_180000)
I usually have used, when i first time started to analyse them, which give me a moving figure in matlab
[a1 a2 a3]=size(Windv_y_20040501_180000);
v10_profile=reshape(Windv_y_20040501_180000,a1,a2*a3);
for a=1:a3
imagesc(V10(:,:,a))
title('wind profile m/s V_1_0'),colorbar
drawnow;
pause(0.2);
end
Although this does not satisfy the next thing i want to achieve which is to combine two quantities and then have a figure(subplot) with the new combined re-calculated matrices in a separate plot
The files i normally use have this kind of structure, a constant name of variable but different endings.
Windv_y_20040501_180000
Windv_y_20040501_210000
Windv_x_20040501_180000
Windv_x_20040501_210000
Assuming that i want to automate a process for example, adding the corresponding matrices and then plot them
m1= Windv_x_20040501_180000 + Windv_y_20040501_180000
m2= Windv_x_20040501_210000 + Windv_y_20040501_210000
figure
subplot(2,1,1),image(m1)
subplot(2,1,2),image(m2)
Any suggestion would be welcome
thank you