필터 지우기
필터 지우기

Send data from an array to NumericEditFields

조회 수: 1 (최근 30일)
Arlan Pacheco Figueiredo
Arlan Pacheco Figueiredo 2022년 8월 9일
댓글: Arlan Pacheco Figueiredo 2022년 8월 9일
I have as a response from a neural network (app.Simul) the following values:
ans =
0.5968
1.8558
4.1193
I want to put each value in a NumericEditFields as separate results.
I typed the following code for the (Simulate) button that performs the simulation:
app.Simul = sim(app.Calling.net_SOLD,app.D2)
app.EditField_1=app.Simul(1);
app.EditField_2=app.Simul(2);
app.EditField_3=app.Simul(3)
However, when running the program, the following error message appears:
Error setting property 'EditField_1' of class 'app_RNA_2'. Cannot convert double value 0.596828 to a handle.
It seems that it is necessary to convert the values obtained by the neural network (3x1 matrix) to values accepted by NumericEditFields
Send data from an array to NumericEditFields.
Can someone help me?

답변 (1개)

Walter Roberson
Walter Roberson 2022년 8월 9일
app.Simul = sim(app.Calling.net_SOLD,app.D2);
app.EditField_1.Value = app.Simul(1);
app.EditField_2.Value = app.Simul(2);
app.EditField_3.Value = app.Simul(3);
  댓글 수: 1
Arlan Pacheco Figueiredo
Arlan Pacheco Figueiredo 2022년 8월 9일
Thank you very much again Walter.
My app is getting great and I see I still have a lot to learn...
I'm very grateful!

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Getting Started with Microsoft .NET에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by