how to load my data in to feed forward neural network?

2 visualizzazioni (ultimi 30 giorni)
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;

Risposte (1)

Ayush Aniket
Ayush Aniket il 29 Ago 2025
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

Categorie

Scopri di più su Deep Learning Toolbox in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by