필터 지우기
필터 지우기

2D non-Square Matrix to 2D square matrix

조회 수: 3 (최근 30일)
Manoj Kumar
Manoj Kumar 2019년 4월 27일
댓글: Manoj Kumar 2019년 4월 30일
How to make a matrix A with diamension m x n , m,n>1 to a square matrix ?

채택된 답변

madhan ravi
madhan ravi 2019년 4월 27일
편집: madhan ravi 2019년 4월 27일
Wanted = nan(length(A));
Wanted(1:numel(A)) = A
  댓글 수: 3
madhan ravi
madhan ravi 2019년 4월 27일
instead of nan() use zeros()
Manoj Kumar
Manoj Kumar 2019년 4월 30일
Thanks a lot !

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

추가 답변 (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