How to define and store string to matrix or array

40 次查看(过去 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