How to define and store string to matrix or array

54 ビュー (過去 30 日間)
Jaffrey Hudson Immanuel Jeyakumar
Jaffrey Hudson Immanuel Jeyakumar 2019 年 7 月 24 日
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
Jaffrey Hudson Immanuel Jeyakumar 2019 年 7 月 24 日
Thanks a lot :)

カテゴリ

Help Center および File ExchangeCharacters and Strings についてさらに検索

製品


リリース

R2015b

Community Treasure Hunt

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

Start Hunting!

Translated by