Create a GUI to serve as simple ANN to classify the 3 inputs to good or bad

4 ビュー (過去 30 日間)
Andrew Ang
Andrew Ang 2018 年 10 月 10 日
コメント済み: Kevin Chng 2018 年 10 月 11 日
I have train the neural network with nprtool. I have the identified the best neural network configuration. The GUI will allow the user to enter 3 inputs in numbers, and to classify the inputs into GOOD or BAD. Question & Help Needed: I have no concern to create the GUI layout but need help to create the coding (either callback or createFcn)
  7 件のコメント
Andrew Ang
Andrew Ang 2018 年 10 月 11 日
Ultimately to learn MATLAB and need a guru/s to guide me too.
Kevin Chng
Kevin Chng 2018 年 10 月 11 日
Apologise that we can't do that in community, however, you may learn the started from here

サインインしてコメントする。

採用された回答

Kevin Chng
Kevin Chng 2018 年 10 月 10 日
in your matlab command window,type
appdesigner
Design your GUI. Subsequently, click
button> button.properties (left hand side)> callback> create call back
In the call back function, get the text from box. Remember convert them to correct format for your code after that.
a= app.EditFieldLabel.Text;
b= app.EditFieldLabel.Text;
c= app.EditFieldLabel.Text;
then run your code, display your result in the label component
app.Label.Text = 'good';
How to change colour of Lamp?
if a>=0 || b>=0 || c>=0
app.Lamp.Color = [1 0 0];
end
[1 0 0] is red colour and [0 1 0] is green colour. Refer to here for colour specification in MATLAB

その他の回答 (1 件)

Andrew Ang
Andrew Ang 2018 年 10 月 10 日
Please, can someone guide me on the code?
methods (Access = private)
% Button pushed function: CheckHealthinessButton
function Compute(app, event)
if valueSMT>=10 || valueMS>=10 || valueFCT>=10
app.Lamp.Color = [1 0 0]
else app.Lamp.Color = [0 1 0]
end
end
% Value changed function: SMTFailRate
function SMTFailRateValueChanged(app, event)
valueSMT = app.SMTFailRateValueChanged.Value;
end
% Value changed function: MSFailRate
function MSFailRateValueChanged(app, event)
valueMS = app.MSFailRateValueChanged.Value;
end
% Value changed function: FCTFailRate
function FCTFailRateValueChanged(app, event)
valueFCT = app.FCTFailRateValueChanged.Value;
end
end

カテゴリ

Help Center および File ExchangeDeep Learning Toolbox についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by