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
| % --- Outputs from this function are returned to the command line.
function varargout = Plot_OutputFcn(hObject, eventdata, handles)
% varargout cell array for returning output args (see VARARGOUT);
% hObject handle to figure
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Get default command line output from handles structure
varargout{1} = handles.output;
function LocSetLimits(ax,lims)
set(ax,'XLim',lims(0:s),'XLimMode','manual');
set(ax,'view',[0 s]);
% --- Executes on button press in plot.
function plot_Callback(hObject, eventdata, handles)
% hObject handle to plot (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
global fvar;
global G;
global fmax;
global ABS;
global s;
s=fmax+150;
plot (fvar,G),hold on,title 'Sound absorption coefficient', xlabel 'Frequency (Hz)', ylabel 'Amplitude'; |
Partager