필터 지우기
필터 지우기

how concatenate arraycell in this strange way

조회 수: 1 (최근 30일)
pipor
pipor 2023년 9월 3일
댓글: Dyuman Joshi 2023년 9월 3일
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