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

1 Ansicht (letzte 30 Tage)
Neiil Pillai
Neiil Pillai am 5 Nov. 2019
Beantwortet: Jess Lovering am 5 Nov. 2019
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

Antworten (1)

Jess Lovering
Jess Lovering am 5 Nov. 2019
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?

Kategorien

Mehr zu Programming finden Sie in Help Center und File Exchange

Produkte


Version

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by