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

Dinesh Yadav
Dinesh Yadav 2019년 10월 30일
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 2019년 11월 4일
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

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Logical에 대해 자세히 알아보기

질문:

2019년 10월 27일

댓글:

2019년 11월 4일

Community Treasure Hunt

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

Start Hunting!

Translated by