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!

 采纳的回答

{'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?
You can use celldisp() for a fairly different format but all elements would be displayed.
Okay! Thank you!
Haha are you in Lombarda's class too?

请先登录,再进行评论。

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Logical 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by