how to load my data in to feed forward neural network?
조회 수: 2 (최근 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일
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!