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!

 Akzeptierte Antwort

Walter Roberson
Walter Roberson am 18 Nov. 2017

0 Stimmen

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

4 Kommentare

Zhuoying Lin
Zhuoying Lin am 19 Nov. 2017
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 am 19 Nov. 2017
You can use celldisp() for a fairly different format but all elements would be displayed.
Zhuoying Lin
Zhuoying Lin am 20 Nov. 2017
Okay! Thank you!
Britney
Britney am 22 Nov. 2017
Haha are you in Lombarda's class too?

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by