How to define and store string to matrix or array
43 views (last 30 days)
Show older comments
Jaffrey Hudson Immanuel Jeyakumar
on 24 Jul 2019
Answered: Jaffrey Hudson Immanuel Jeyakumar
on 24 Jul 2019
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
0 Comments
Accepted Answer
More Answers (1)
See Also
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!