Matlab Function Output matrix size

Hello Friends,
Below is the matlab function i created on simulink for output b_i and input time t and all other inputs are scalers
Capture.PNG
I have mentioned the size of each variable computed in the comments following the computation.
Here,I get the output size of b_i as 51x3 . where as i expect a 3x1x51 . Could anyone tell me why I do not get it?

2 Kommentare

Dinesh Yadav
Dinesh Yadav am 30 Okt. 2019
What I would like to understand is you are having all 2D matrices of size 3x1 and 3x3, how are you getting the output of 51x3? And why are you expecting the output to be 3D. I do not see any indexing to add elements to the 3rd dimension.
Nisarg Shah
Nisarg Shah am 4 Nov. 2019
The other fuction which i am using other than this one also has all 2 D inputs but it gives a 3x3x51 output. I am attaching here the complete model.
This is the code for computing R_oi which gives me an output of 3x3x51.
Capture.PNG
This is my simulink model.
Capture.PNG

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Gefragt:

am 27 Okt. 2019

Kommentiert:

am 4 Nov. 2019

Community Treasure Hunt

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

Start Hunting!

Translated by