필터 지우기
필터 지우기

Dynamically determining a matrix

조회 수: 1 (최근 30일)
Mahmoud Solomon
Mahmoud Solomon 2018년 3월 30일
댓글: James Tursa 2018년 3월 31일
I have a some data, say n rows and 4 columns. I can easily form a state matrix as indicated below.
A = [a b c d; b e f g; c f l k; d f l n];
Note: Each element in A is scalar and was computed from the data.
How can I generalize it so that it can accommodate any number of columns?
  댓글 수: 1
James Tursa
James Tursa 2018년 3월 31일
Please show what the upstream calculations are for producing the scalars that will go into the matrix. Then we can advise how to get them into a matrix in a generalized way.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by