-
Notifications
You must be signed in to change notification settings - Fork 0
/
DefaultSettings.m
36 lines (21 loc) · 1.08 KB
/
DefaultSettings.m
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
function DefaultSettings(handles)
%UNTITLED2 Summary of this function goes here
% Detailed explanation goes here
% Do not use get in this file because this is meant to set the formatting
% only and all things have already been get and variable are set prior to
% calling this file
%% Populating all parameters with the defaults
set(handles.edit_sessionDuration,'String',30);
sessionDuration = str2double(get(handles.edit_sessionDuration,'String'));
setappdata(handles.figure1,'settings_sessionDuration',sessionDuration);
set(handles.edit_samplingFrequency,'String',10);
samplingFrequency = str2double(get(handles.edit_samplingFrequency,'String'));
setappdata(handles.figure1,'settings_samplingFrequency',samplingFrequency);
set(handles.edit_scrollPlotWidth,'String',30);
scrollPlotWidth = str2double(get(handles.edit_scrollPlotWidth,'String'));
setappdata(handles.figure1,'setting_scrollPlotWidth',scrollPlotWidth);
setappdata(handles.figure1,'settings_rightOffset',ceil(scrollPlotWidth/10));
set(handles.edit_yMinValue,'String',0);
set(handles.edit_yMaxValue,'String',1024);
drawnow
end