Info
此问题已关闭。 请重新打开它进行编辑或回答。
Petroleum Table GUI ANN
1 次查看(过去 30 天)
显示 更早的评论
Hi, I made two tables using the GUI. As shown in the figure, I need the user to fill in the columns of the first table (on the left), and the results to be shown in the other table(on the right). So what i need exactly is to enable the user to fill the whole table. Then, the simulate button will pass through neural network ,and the result will be displayed in the other table. What I have tried under the simulate push button
n=load('Rs\net.mat'); %to call the neural network
data = get(handles.table1, 'Data');
first_row = data(1,:); % trying to apply it first on the first row only
input=([first_row]'); % transposing the first row because the neural network takes columns not rows
ANN=sim(n.net,input); % simulate the network on the file input which is the first row
set(handles.table2,'data',ANN); % trying to make the asnwer appears in the second table cell (1,1)
This error appears when I press simulate "Inputs{1,1} is not numeric or logical."
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/163994/image.jpeg)
0 个评论
回答(0 个)
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!