classdef app1 < matlab.apps.AppBase
properties (Access = public)
UIFigure matlab.ui.Figure
EEGSliderLabel matlab.ui.control.Label
EEGSlider matlab.ui.control.Slider
KWKGSliderLabel matlab.ui.control.Label
KWKGSlider matlab.ui.control.Slider
NetzentgeltSliderLabel matlab.ui.control.Label
NetzentgeltSlider matlab.ui.control.Slider
VerbrauchSliderLabel matlab.ui.control.Label
VerbrauchSlider matlab.ui.control.Slider
AnteilEESliderLabel matlab.ui.control.Label
AnteilEESlider matlab.ui.control.Slider
BeschaffungskostenSliderLabel matlab.ui.control.Label
BeschaffungskostenSlider matlab.ui.control.Slider
StrompreisEditFieldLabel matlab.ui.control.Label
StrompreisEditField matlab.ui.control.NumericEditField
CalculateButton matlab.ui.control.StateButton
end
methods (Access = private)
function results = func(app)
end
end
methods (Access = private)
function CalculateButtonValueChanged(app, event)
value = app.CalculateButton.Value;
end
end
methods (Access = private)
function createComponents(app)
app.UIFigure = uifigure;
app.UIFigure.Position = [100 100 640 480];
app.UIFigure.Name = 'UI Figure';
app.EEGSliderLabel = uilabel(app.UIFigure);
app.EEGSliderLabel.HorizontalAlignment = 'right';
app.EEGSliderLabel.Position = [417 280 29 22];
app.EEGSliderLabel.Text = 'EEG';
app.EEGSlider = uislider(app.UIFigure);
app.EEGSlider.Limits = [0 10];
app.EEGSlider.Orientation = 'vertical';
app.EEGSlider.Position = [467 289 3 150];
app.KWKGSliderLabel = uilabel(app.UIFigure);
app.KWKGSliderLabel.HorizontalAlignment = 'right';
app.KWKGSliderLabel.Position = [296 281 42 22];
app.KWKGSliderLabel.Text = 'KWKG';
app.KWKGSlider = uislider(app.UIFigure);
app.KWKGSlider.Limits = [0 1];
app.KWKGSlider.Orientation = 'vertical';
app.KWKGSlider.Position = [359 290 3 150];
app.NetzentgeltSliderLabel = uilabel(app.UIFigure);
app.NetzentgeltSliderLabel.HorizontalAlignment = 'right';
app.NetzentgeltSliderLabel.Position = [146 280 67 22];
app.NetzentgeltSliderLabel.Text = 'Netzentgelt';
app.NetzentgeltSlider = uislider(app.UIFigure);
app.NetzentgeltSlider.Limits = [0 10];
app.NetzentgeltSlider.Orientation = 'vertical';
app.NetzentgeltSlider.Position = [234 289 3 150];
app.VerbrauchSliderLabel = uilabel(app.UIFigure);
app.VerbrauchSliderLabel.HorizontalAlignment = 'right';
app.VerbrauchSliderLabel.Position = [22 282 60 22];
app.VerbrauchSliderLabel.Text = 'Verbrauch';
app.VerbrauchSlider = uislider(app.UIFigure);
app.VerbrauchSlider.Limits = [0 700];
app.VerbrauchSlider.Orientation = 'vertical';
app.VerbrauchSlider.Position = [103 291 3 150];
app.AnteilEESliderLabel = uilabel(app.UIFigure);
app.AnteilEESliderLabel.HorizontalAlignment = 'right';
app.AnteilEESliderLabel.Position = [212 70 53 22];
app.AnteilEESliderLabel.Text = 'Anteil EE';
app.AnteilEESlider = uislider(app.UIFigure);
app.AnteilEESlider.Orientation = 'vertical';
app.AnteilEESlider.Position = [286 79 3 150];
app.BeschaffungskostenSliderLabel = uilabel(app.UIFigure);
app.BeschaffungskostenSliderLabel.HorizontalAlignment = 'right';
app.BeschaffungskostenSliderLabel.Position = [1 77 115 22];
app.BeschaffungskostenSliderLabel.Text = 'Beschaffungskosten';
app.BeschaffungskostenSlider = uislider(app.UIFigure);
app.BeschaffungskostenSlider.Limits = [0 10];
app.BeschaffungskostenSlider.Orientation = 'vertical';
app.BeschaffungskostenSlider.Position = [137 86 3 150];
app.StrompreisEditFieldLabel = uilabel(app.UIFigure);
app.StrompreisEditFieldLabel.HorizontalAlignment = 'right';
app.StrompreisEditFieldLabel.Position = [361 175 64 22];
app.StrompreisEditFieldLabel.Text = 'Strompreis';
app.StrompreisEditField = uieditfield(app.UIFigure, 'numeric');
app.StrompreisEditField.Position = [440 175 100 22];
app.CalculateButton = uibutton(app.UIFigure, 'state');
app.CalculateButton.ValueChangedFcn = createCallbackFcn(app, @CalculateButtonValueChanged, true);
app.CalculateButton.Text = 'Calculate';
app.CalculateButton.Position = [361 214 100 22];
end
end
methods (Access = public)
function app = app1
createComponents(app)
registerApp(app, app.UIFigure)
if nargout == 0
clear app
end
end
function delete(app)
delete(app.UIFigure)
end
end
end