📄 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 + -