how concatenate arraycell in this strange way

c = {1 4}
d = {3 6}
it's possibile to do it?
{1 3} {4 6}

1 comentario

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.

Iniciar sesión para comentar.

 Respuesta aceptada

Matt J
Matt J el 3 de Sept. de 2023
Editada: Matt J el 3 de Sept. de 2023
c = {1 4};
d = {3 6};
num2cell( [cell2mat([c;d]')],2)'
ans = 1×2 cell array
{[1 3]} {[4 6]}

Más respuestas (0)

Categorías

Más información sobre Creating and Concatenating Matrices en Centro de ayuda y File Exchange.

Preguntada:

el 3 de Sept. de 2023

Comentada:

el 3 de Sept. de 2023

Community Treasure Hunt

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

Start Hunting!

Translated by