필터 지우기
필터 지우기

Need help in solving this error.

조회 수: 2 (최근 30일)
Shlok
Shlok 2024년 1월 31일
댓글: Shlok 2024년 2월 14일
I want to estimate 2 parameters. My system is linear and I am using Recursive Least square block from System Identificaion toolbox.
I am getting the following error messages:
Error:Error in port widths or dimensions. The "Regressors" port of the "untitled1/Recursive Least Squares Estimator" block expects a 2-dimensional signal with 2 columns, but found 1 columns.
Error:Error in port widths or dimensions. 'Output Port 1' of 'untitled1/Recursive Least Squares Estimator/Check Signals/Regressors' is a one dimensional vector with 2 elements.
My Regressor matrix is of Dimension 499x3, where first column is time.
My output matrix is of dimension 499x2, where first column is time.
I have seen other examples for reference but I am not able to find the mistake here. I need help. Thank you.

답변 (1개)

Pooja Kumari
Pooja Kumari 2024년 2월 12일
Hi,
The error messages you're encountering suggest that there is a mismatch between the expected input dimensions for the "Regressors" port of the Recursive Least Squares Estimator block and the actual input you're providing. Since you want to estimate 2 parameters, your regressor matrix should have 2 columns (excluding the time column), and your output matrix should have 1 column (also excluding the time column).
There might be error due to timeseries data "y".You can extract the data and pass it as y.
  댓글 수: 1
Shlok
Shlok 2024년 2월 14일
First of all thank you for answering my question. The dimensions of my vectors were correct. I do not know how the error had occured but the error has been solved now. I redid everything exactly the same way and it worked this time. Thanks.

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

카테고리

Help CenterFile Exchange에서 Sources에 대해 자세히 알아보기

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by