how to load my data in to feed forward neural network?
4 次查看(过去 30 天)
显示 更早的评论
These are my matlab commands for input (probx) out (dualout) To load data in to nntool. probx=[1.175 1.675 2.175 2.675 3.175 3.675 4.175;23.9 23.9 23.9 23.9 23.9 23.9 23.9] dualout= {[0.640 1.155] [0.705 1.096] [0.909 1.009] [0.671 1.027] [0.781 0.899] [0.736 0.737] [0.44 1.827]} after loading data in to nntool , I am using feed forward backprob network to train .but I am getting following error in matlab.
Error: ??? Insufficient number of outputs from right hand side of equal sign to satisfy assignment. Error in ==> nntool at 681 [errmsg,errid] = me.message;
0 个评论
回答(1 个)
Ayush Aniket
2025-8-29,8:18
In nntool, inputs and targets must be numeric matrices (each column = one sample). Your dualout is a cell array, which causes the error. The solutionis to make it a numeric 2×7 matrix, not a cell array.
% Input (2×7)
probx = [1.175 1.675 2.175 2.675 3.175 3.675 4.175;
23.9 23.9 23.9 23.9 23.9 23.9 23.9];
% Target output (2×7)
dualout = [0.640 0.705 0.909 0.671 0.781 0.736 0.440;
1.155 1.096 1.009 1.027 0.899 0.737 1.827];
nntool % now import probx as input, dualout as target
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Deep Learning Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!