How to define and store string to matrix or array

8 Ansichten (letzte 30 Tage)
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

Akzeptierte Antwort

Stephen23
Stephen23 am 24 Jul. 2019
Bearbeitet: Stephen23 am 24 Jul. 2019

Weitere Antworten (1)

Jaffrey Hudson Immanuel Jeyakumar
Thanks a lot :)

Kategorien

Mehr zu Characters and Strings finden Sie in Help Center und File Exchange

Produkte


Version

R2015b

Community Treasure Hunt

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

Start Hunting!

Translated by