How to increase alphanumeric (i.e. NACA0012, NACA0013, NACA0014 etc)

1 回表示 (過去 30 日間)
Neiil Pillai
Neiil Pillai 2019 年 11 月 5 日
回答済み: Jess Lovering 2019 年 11 月 5 日
Hey,
i am trying to make a loop summing from NACA0000 to NACA 9999
how can i do this while keeping the "NACA" statement in this alphanumeric.
Cheers

回答 (1 件)

Jess Lovering
Jess Lovering 2019 年 11 月 5 日
You can loop through each value like this:
for ii = 1:10
str = ['NACA' num2str(ii,'%04i')]
disp(str)
end
Is that what you had in mind?

カテゴリ

Help Center および File ExchangeProgramming についてさらに検索

製品


リリース

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by