Hey everyone,
I have two strings that I want to accumulate in a vector. 'i' is a loop value and I need two columns. A(i,2)= ???(z,m); wherein z and m are the two strings that I want in that vector. How should I do this?

댓글 수: 4

Guillaume
Guillaume 2016년 5월 18일
What does 'accumulating a string' means to you?
Rafael  Pires
Rafael Pires 2016년 5월 18일
Azzi Abdelmalek
Azzi Abdelmalek 2016년 5월 18일
z=3214 is not a string
Rafael  Pires
Rafael Pires 2016년 5월 18일
I know about that, but in my program z will be a string, because I need to replace this value in a .txt Ok?

댓글을 달려면 로그인하십시오.

 채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2016년 5월 18일
편집: Azzi Abdelmalek 2016년 5월 18일

1 개 추천

str1='abc'
str2='def'
A=[str1' str2']
%Or
str1='abc'
str2='def'
A{1,1}=str1
A{1,2}=str2
str1='123'
str2='156'
A{2,1}=str1
A{2,2}=str2

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Entering Commands에 대해 자세히 알아보기

질문:

2016년 5월 18일

댓글:

2016년 5월 18일

Community Treasure Hunt

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

Start Hunting!

Translated by