for loop that will iterate through the integers from 32 to 255. show the corresponding character from the character encoding
7 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
how do i write a script for a loop that will iterate through the integers from 32 to 255 and show the corresponding character from the character encoding
0 Kommentare
Antworten (2)
Tim Jackman
am 16 Sep. 2015
Loop through and display each corresponding ASCII character? So something like this?
for ii = 32:255
disp(char(ii))
charact(ii-31) = char(ii);
end
Stephen23
am 16 Sep. 2015
Bearbeitet: Stephen23
am 17 Sep. 2015
Like most MATLAB code it is easier and faster without a loop:
>> char(32:255)
ans =
!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~ ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ
0 Kommentare
Siehe auch
Kategorien
Mehr zu Loops and Conditional Statements finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!