📄 text2int.m
字号:
function y = text2int (x)% This function takes the letter in the string x and converts % it to an integer. % The convention for this function is% a --> 0% b --> 1% and so on...if ( (x < 'a') | (x > 'z') ), error('Text character out of range a-z');end;y=x - 'a'; %It helps to know Matlab tricks
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -