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
| function rheologie
% RHEOLOGIE Enter the data, then click one of the plot-type push buttons.
% Clicking the button plots the selected data in the axes.
% Create and hide the GUI as it is being constructed.
f = figure('numbertitle','off',...
'Position',[360,500,450,285],...
'name','Projet Rhéologie : Système Amortissement - auto & moto');
% Construct the components.
m = uicontrol('Style','edit',...
'String','Enter the value of m',...
'Position',[315,245,120,25]);
hi = uicontrol('style','pushbutton',...
'String','Plot',...
'position',[250,20,100,25]);
ha = axes('Units','Pixels',...
'Position',[50,60,200,185]);
xlabel('Time (seconds)',...
'FontSize',10,...
'Color','blue');
ylabel('Position (m)',...
'FontSize',10,...
'Color','blue');
title('Représentation de position',...
'FontSize',12,...
'Color','red');
align([m,f,hi],'Center','None');
%Make the GUI visible.
set(f,'Visible','on') |
Partager