Hi, I have trouble creating a subcell within a cell array, can someone help me?
I am supposed to type:
[sin] [[0][2pi][pi/100]] [0 1 1 0]
Thank you!

 채택된 답변

Walter Roberson
Walter Roberson 2017년 11월 18일

0 개 추천

{'sin', {0, '2*pi', 'pi/100'}, [0 1 1 0]}
or perhaps
{'sin', {0, 2*pi, pi/100}, [0 1 1 0]}

댓글 수: 4

It displays as:
{'sin'} {1×3 cell} {1×4 double}
So I guess there's no other way to show all the elements then?
Walter Roberson
Walter Roberson 2017년 11월 19일
You can use celldisp() for a fairly different format but all elements would be displayed.
Zhuoying Lin
Zhuoying Lin 2017년 11월 20일
Okay! Thank you!
Britney
Britney 2017년 11월 22일
Haha are you in Lombarda's class too?

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

추가 답변 (0개)

카테고리

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

질문:

2017년 11월 18일

댓글:

2017년 11월 22일

Community Treasure Hunt

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

Start Hunting!

Translated by