how concatenate arraycell in this strange way

2 次查看(过去 30 天)
c = {1 4}
d = {3 6}
it's possibile to do it?
{1 3} {4 6}
  1 个评论
Dyuman Joshi
Dyuman Joshi 2023-9-3
What exactly is supposed to be the output you want?
The above mentioned expression is not clear -
{1 3} {4 6}
Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

请先登录,再进行评论。

采纳的回答

Matt J
Matt J 2023-9-3
编辑:Matt J 2023-9-3
c = {1 4};
d = {3 6};
num2cell( [cell2mat([c;d]')],2)'
ans = 1×2 cell array
{[1 3]} {[4 6]}

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Circuits and Systems 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by