필터 지우기
필터 지우기

How to create 2x2 array containing elements?

조회 수: 38 (최근 30일)
Liam Bouchereau
Liam Bouchereau 2020년 10월 27일
댓글: Cameron Tugwell 2020년 10월 27일
Create a 2x2 cell array, C which contains the following information:
In element {1,1}, insert the expression below:
my cell
In element {1,2}, insert the array below:
[9 0 3; 2 5 6; 7 81 6]
In element {2,1}, insert the complex number below:
3 + 6i
In element {2,2}, insert the array:
[1 4; 6 7; 11 3]
  댓글 수: 3
Liam Bouchereau
Liam Bouchereau 2020년 10월 27일
AHAHAHAHA just getting ready to fail tomorrow's exam
Cameron Tugwell
Cameron Tugwell 2020년 10월 27일
Mate aren't we all ahahah

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

채택된 답변

Mathieu NOE
Mathieu NOE 2020년 10월 27일
hi
this is quite straitghforward :
C{1,1} = 'my cell';
C{1,2} = [9 0 3; 2 5 6; 7 81 6];
C{2,1} = 3 + 6i;
C{2,2} = [1 4; 6 7; 11 3];
C =
'my cell' [3x3 double]
[3.0000+ 6.0000i] [3x2 double]

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by