楼主: yuanbenyao
6982 5

[求助]matlab如何导入excel中的汉字,求助~~~ [推广有奖]

  • 0关注
  • 2粉丝

已卖:453份资源

大专生

36%

还不是VIP/贵宾

-

威望
0
论坛币
3162 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
359 点
帖子
26
精华
0
在线时间
48 小时
注册时间
2008-4-18
最后登录
2016-3-1

楼主
yuanbenyao 发表于 2009-1-14 09:25:00 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
各位高手,用xlsread读入excel会把表头的汉字独立出一个数据集,怎样把整个excel中的内容包括表头汉字导入一个数据集?
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:MATLAB matla atlab EXCEL exce MATLAB EXCEL 汉字

沙发
aris_zzy 发表于 2009-1-14 09:47:00

matlab不认汉字,呵呵

最好还是使用英文吧

http://www.ariszheng.com

藤椅
king64 发表于 2009-1-16 22:28:00

https://bbs.pinggu.org/thread-405128-1-1.html&replyID=52760&skin=1

参考上面的内容,看一看能否有帮助。

板凳
mayday 学生认证  发表于 2009-1-18 11:13:00
matlab认不出来的...
时间好比乳沟,挤一挤还是有的。

报纸
matlab-007 发表于 2015-1-1 18:51:52
第一种方法,你可以使用xlsread函数来读取excel中的数据

第二种方法,就是把字符转化为数字,使用函数str2num

xlsread的使用
EXAMPLES:
    1. Default operation:  
       NUMERIC = xlsread(FILE);
       [NUMERIC,TXT]=xlsread(FILE);
       [NUMERIC,TXT,RAW]=xlsread(FILE);

    2. Get data from the default region:
       NUMERIC = xlsread('c:\matlab\work\myspreadsheet')

    3. Get data from the used area in a sheet other than the first sheet:
       NUMERIC = xlsread('c:\matlab\work\myspreadsheet','sheet2')

    4. Get data from a named sheet:
       NUMERIC = xlsread('c:\matlab\work\myspreadsheet','NBData')

    5. Get data from a specified region in a sheet other than the first
       sheet:
       NUMERIC = xlsread('c:\matlab\work\myspreadsheet','sheet2','a2:j5')
  
    6. Get data from a specified region in a named sheet:
       NUMERIC = xlsread('c:\matlab\work\myspreadsheet','NBData','a2:j5')
  
    7. Get data from a region in a sheet specified by index:
       NUMERIC = xlsread('c:\matlab\work\myspreadsheet',2,'a2:j5')
  
    8. Interactive region selection:
       NUMERIC = xlsread('c:\matlab\work\myspreadsheet',-1);
       You have to select the active region and the active sheet in the
       EXCEL window that will come into focus. Click OK in the Data
       Selection Dialog when you have finished selecting the active region.

地板
Xaero 发表于 2015-1-1 20:51:55
最近几年的高版本Matlab,直接读取汉字没有任何问题。

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-21 15:34