# What can I do to make the output characteristic of the network is two value, that is the implement multivariate input and multivariable output

15 views (last 30 days)

Show older comments

##### 0 Comments

### Accepted Answer

Taylor
on 12 Sep 2024 at 13:36

##### 5 Comments

Taylor
on 19 Sep 2024 at 13:19

YrTrain(i,1) is a numeric array that only has space for one number. outputn_train(:,1) is a numeric array that contains two numbers, so it will not fit into YrTrain(i,1) when you try to assign it in line 85. That is what is meant by "The assignment cannot be performed because the size on the left side is 1×1 and the right side is 2×1". Line 84 runs sucessfully becuase XrTrain is a cell array, as indicated by the curly brackets. There are multiple ways to edit line 85 so that it runs sucessfuly. You could make YrTrain a cell array like XrTrain by using curly brackets:

YrTrain{i,1} = ourputn_train(:,i);

You could also just increase the size of the numeric array:

YrTrain(i,:) = outputn_train(:,i);

### More Answers (0)

### See Also

### Categories

### Community Treasure Hunt

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

Start Hunting!