フィルターのクリア

Neural network (edit, text, pushbutton)

1 回表示 (過去 30 日間)
Daniel Savu
Daniel Savu 2020 年 6 月 22 日
回答済み: Shubham Khatri 2021 年 4 月 12 日
Hello! Can you help me please!! I have the following code phrase for neural network. I want to make my matlab interface read 5 inputs of the neural network. How can I do this? Thank you in advance
load retea.mat;
input_value = str2double(get(handles.edit1, 'String'));
output_value = sim(test_net, input_value)
set(handles.text2, 'String', num2str(output_value))

回答 (1 件)

Shubham Khatri
Shubham Khatri 2021 年 4 月 12 日
Hello,
To my understanding you are trying to build a neural network with 5 inpurs and one output. I have created a dummy code below.
net = feedforwardnet;
net.numinputs = 5;
net.inputConnect = input_value
net = configure(net,input_value,output_value);
net = train(net,input_value,output_value);
view(net)
output_value = sim(net,input_value)
Also, take a look at this community answer.
For more information, please visit the documentation link for train, configure and sim.
Hope it helps

カテゴリ

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