필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Joining txt cells from different matrices

조회 수: 1 (최근 30일)
Laura Karacic
Laura Karacic 2020년 7월 2일
마감: MATLAB Answer Bot 2021년 8월 20일
Hi, I have two 22x11 matrices containing all txt. I would like to join the text from say cell 1x1 from the first matrix and 1x1 from the second matrix (and so on) and print it into a single cell. Any help would be much appreciated. Thanks!
  댓글 수: 1
madhan ravi
madhan ravi 2020년 7월 2일
Upload file.

답변 (1개)

Vinai Datta Thatiparthi
Vinai Datta Thatiparthi 2020년 7월 7일
Hey Laura,
From your description of the question, I've tried to replicate the scenario with a bunch of simpler matrices. Have a look at this code:
mat1 = ["a", "b"; "c", "d"]; % Input matrix 1
mat2 = ["e", "f"; "g", "h"]; % Input matrix 2
out = mat1 + mat2; % Matrix to hold the output values
Since you weren't clear as to how you want to display your outputs, I assumed you might want to hold them in a matrix like out.
Hope this helps!

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by