MATLAB: Neural Network input error

Deep Learning ToolboxMATLABneural network

i have a table of input 30 rows* 9 columne and target table 30*1
i tried to run newff as below net=feedforwardnet(1) [tr,net]=train(net,input,target)
but it does not work because of an error below Error using network/train (line 340) Number of inputs does not match net.numInputs.
any advice pls

Best Answer

input and target matrices should have the same number of columns
[ I N ] = size(input)
[ O N ] = size(target)
Hope this helps.
Thank you for formally accepting my answer
Greg