?? exa1_8.m
字號:
u='If a woodchuck could chuck wood,';
disp(u)
i=find(u>='a' & u<= 'z'); % find is a very powerful function!
u(i)=setstr(u(i)-('a'-'A'))
v=['Character strings having more than'
'one row must have the same number '
'of column just like matrices! '];
disp(v)
i=find(v>='a' & v<='z'); % here i is a single index vector into v,
v(i)=setstr(v(i)-('a'-'A')) % and matrix keeps the same orientation.
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -