>> str='I have many good friends!'
str =
I have many good friends!
>> whos
Name Size Bytes Class
EXPLODE 1x5 40 double array
F1 1x12 24 char array
F2 1x12 24 char array
X 1x5 40 double array
a 1x28 224 double array
ans 1x12 12 logical array
label 1x5 330 cell array
s1 1x10 20 char array
s2 1x10 20 char array
s3 1x11 22 char array
str 1x25 50 char array
w 1x19 38 char array
x 1x4 32 double array
Grand total is 173 elements using 876 bytes
>>
%另外,字符串内的单引号是由两个连续的单引号来表示。字符串连接可以直接从数组连接中得到。继续在命令窗口中输入如下语句,并按Enter键确认。
>>u='we must study hard!'
u =
we must study hard!
>> v='and we should never forget our country!'
v =
and we should never forget our country!
>> w=[u,v]
w =
we must study hard!and we should never forget our country!
>>
%如同矩阵,字符串可以有多个行,但每行必须有相同数目的列数。因此,要用空格以使所有行有相同长度,继续在命令窗口中输入如下语句,并按Enter键确认。
>> t=[' xiao ming kao shang le daxue'
'xiaofang meiyou kaoshangdaxue']
t =
xiao ming kao shang le daxue
xiaofang meiyou kaoshangdaxue
>>
%如果各列输入的字符串长度不一致时,MATLAB 7将给出错误的提示。继续在命令窗口中输入如下语句,并按Enter键确认。
>> t=[' xiao ming kao shang le daxue'
'xiaofang meiyou kaoshang daxue']
??? Error using ==> vertcat
All rows in the bracketed expression must have the same
number of columns.
>>
>> t=['China win 32 gold metals in the Olympic Games'
'and Chinese TAibei Team win 2 gold metals '
'That doesn''t mean any thing ']
t =
China win 32 gold metals in the Olympic Games
and Chinese TAibei Team win 2 gold metals
That doesn't mean any thing
>>
>> t=['China win 32 gold metals in the Olympic Games'
'and Chinese TAibei Team win 2 gold metals '
'That doesn''t mean any thing ']
??? Error using ==> vertcat
All rows in the bracketed expression must have the same
number of columns.
没有合适的资源?快使用搜索试试~ 我知道了~
数学建模 最强 最有用 最新的
共266个文件
txt:261个
db:4个
url:1个
需积分: 3 10 下载量 27 浏览量
2008-09-02
21:15:28
上传
评论
收藏 243KB RAR 举报
温馨提示
最强的数学建模数学建模 最强 最有用 最新的
资源推荐
资源详情
资源评论
收起资源包目录
数学建模 最强 最有用 最新的 (266个子文件)
Thumbs.db 172KB
Thumbs.db 55KB
Thumbs.db 28KB
Thumbs.db 9KB
05-01.txt 2KB
06-14.txt 2KB
05-05.txt 2KB
07-07.txt 2KB
05-26.txt 2KB
07-38.txt 1KB
06-41.txt 1KB
06-31.txt 1KB
06-13.txt 1KB
06-30.txt 1KB
06-39.txt 1KB
06-82.txt 1KB
9-06.txt 1KB
06-20.txt 1KB
05-30.txt 1KB
10-22.txt 1KB
06-16.txt 1KB
06-12.txt 1KB
05-28.txt 1KB
06-40.txt 1015B
9-03.txt 992B
06-43.txt 976B
06-87.txt 972B
05-24.txt 969B
05-06.txt 921B
06-77.txt 880B
06-79.txt 876B
06-07.txt 856B
06-76.txt 837B
05-09.txt 835B
06-88.txt 832B
08-17.txt 827B
10-40.txt 816B
06-34.txt 813B
06-85.txt 807B
06-06.txt 803B
10-25.txt 790B
06-45.txt 783B
07-36.txt 756B
06-48.txt 748B
06-02.txt 742B
06-03.txt 710B
06-17.txt 701B
06-11.txt 690B
06-53.txt 685B
07-23.txt 682B
05-31.txt 676B
06-24.txt 676B
10-20.txt 664B
10-18.txt 663B
05-13.txt 657B
07-13.txt 656B
06-97.txt 642B
06-08.txt 638B
10-34.txt 633B
06-42.txt 616B
06-21.txt 611B
07-29.txt 607B
06-68.txt 606B
06-86.txt 599B
06-04.txt 591B
05-02.txt 582B
06-56.txt 581B
10-15.txt 580B
06-15.txt 563B
06-37.txt 556B
10-24.txt 551B
06-54.txt 546B
10-21.txt 545B
06-46.txt 543B
05-04.txt 531B
9-01.txt 523B
10-16.txt 522B
10-35.txt 518B
06-65.txt 514B
06-10.txt 511B
07-17.txt 504B
07-25.txt 501B
06-35.txt 492B
06-50.txt 491B
06-57.txt 484B
08-20.txt 482B
06-26.txt 481B
05-20.txt 478B
06-19.txt 478B
06-32.txt 476B
07-16.txt 471B
06-49.txt 470B
10-19.txt 458B
06-62.txt 455B
10-26.txt 453B
06-71.txt 445B
06-64.txt 440B
10-09.txt 435B
07-08.txt 431B
08-02.txt 428B
共 266 条
- 1
- 2
- 3
资源评论
steaboy
- 粉丝: 1
- 资源: 25
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 12位双通道高速ADC芯片AD9238评估板开发模块ALTIUM设计硬件(原理图+PCB)工程文件.zip
- 基于74LS160的20到70的置数仿真节线图
- 解决mac上qt链接mysql方案加使用软件,经测试连接成功
- 锅炉引风机控制;变频调速技术;PLC;组态软件
- Java项目-电影院售票管理系统(java+Servlet+JSP+JDBC+Mysql)
- SSM整合开发-图书管理系统
- 计二202301020210蒋怡.zip
- 基于74LS160的70进制计数器仿真节线图
- 基于74LS160的30进制与70进制转化仿真节线图
- 【用360解压工具解压】springboot+vue实验室(预约)管理系统【www.java1234.com】.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功