how concatenate arraycell in this strange way

1 vue (au cours des 30 derniers jours)
pipor
pipor le 3 Sep 2023
Commenté : Dyuman Joshi le 3 Sep 2023
c = {1 4}
d = {3 6}
it's possibile to do it?
{1 3} {4 6}
  1 commentaire
Dyuman Joshi
Dyuman Joshi le 3 Sep 2023
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.

Connectez-vous pour commenter.

Réponse acceptée

Matt J
Matt J le 3 Sep 2023
Modifié(e) : Matt J le 3 Sep 2023
c = {1 4};
d = {3 6};
num2cell( [cell2mat([c;d]')],2)'
ans = 1×2 cell array
{[1 3]} {[4 6]}

Plus de réponses (0)

Catégories

En savoir plus sur Creating and Concatenating Matrices dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by