필터 지우기
필터 지우기

How to define and store string to matrix or array

조회 수: 31 (최근 30일)
Hi,
I have a variable x inside a for loop ,
Input,
In first intration, x='apple'
In second iteration, x= 'mango'
In third interation, x= 'orange'
---------------------------------------
for i=1:3
x='apple';
end
--------------------------------------
I want to store these strings in a matrix or array and write them to a excel file.
Can anyone, tell me how to do ?
Regards,
Jaffrey Hudson

채택된 답변

Stephen23
Stephen23 2019년 7월 24일
편집: Stephen23 2019년 7월 24일

추가 답변 (1개)

Jaffrey Hudson Immanuel Jeyakumar
Thanks a lot :)

카테고리

Help CenterFile Exchange에서 Characters and Strings에 대해 자세히 알아보기

제품


릴리스

R2015b

Community Treasure Hunt

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

Start Hunting!

Translated by