1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
| function scratch_function()
clc
data_dir_in = pwd;
filename_in = sprintf('\\tmp\\param.mat');
load(fullfile(data_dir_in, filename_in), 'a', 'b');
transRatio=a;
transRatioSigma=b;
transRatioSigma2 = sqrt(transRatioSigma)/mean(transRatio);
%% LA COMMENCENT LES PROBLEMES
figure('Name','Energie transverse')
transRatioSigma3 = zeros(2,length(transRatioSigma2));
transRatioSigma3(1,:) = transRatioSigma2;
transRatioSigma3(2,:) = transRatioSigma2;
load('backgroundCM', 'mycmap')
[XRange, YRange] = meshgrid(linspace(0, size(transRatioSigma3, 2)/50, size(transRatioSigma3, 2)),...
[0 1]);
tMin = min(XRange(1,:));
tMax = max(XRange(1,:));
aMin = min(YRange(:,1));
aMax = max(YRange(:,1));
%subplot(3,1,3)
%set(gcf,'CurrentAxes',axes1);
surf(XRange, YRange, abs(transRatioSigma3(:,:))); shading flat; material([0.4,0.6,0.5,30]);
set(h,'Colormap',mycmap);
beta = .5; brighten(beta);
hold on;
k=1:10:length(transRatio);
plot3(k./50,transRatio(k), linspace(1.1, 1.1, length(k)), 'b.');
xlabel('Temps (s)');
ylim([aMin aMax]); xlim([tMin tMax]); %if ~onlyVectorsFlag, caxis([0 cmax]), end
view([25 90]);colorbar('location','WestOutside');
plot(transRatioSigma);
hold off
whos
end |
Partager