当前位置:网站首页>Importer des données dans MATLAB
Importer des données dans MATLAB
2022-06-25 07:52:00 【Idiot: CPU】
Importer des données dansMATLAB
Importer des données dansMATLABIl y a deux façons.
Première catégorie:Utilisation directeMATLABLireExcelDocumentation
Par exemple
ExcelTableaux
num=xlsread('data1.xlsx','Sheet1','A1:E13');%Lire dansExcelDocumentation
input_train=num(1:8,1:4)';%1À8D'accord,1À4Colonnes
output_train=num(1:8,5)';%1À8D'accord,No5Colonnes
input_test=num(9:13,1:4)';%9À13D'accord,1À4Colonnes
output_test=num(9:13,5)';%9À13D'accord,No5Colonnes
Parmi eux,num:Juste un nom défini,Vous pouvez le définir comme le nom que vous voulez,Par exemple,:settlement;data1:C'est toi qui as donné çaexcelNom;xlsx:C'estexcelSuffixe de fichier pour,Si vous êtes une version antérieure, vous pourriez êtrexls,Faites attention à la présélection;Sheet1:Voici vos données surexcelDans la page;A1:E13:Voici vos données surexcelDans toute la gamme.num(1:8,1:4):1:8 Ça veut dire de la première à la huitième ligne ,1:4 Est la première à la quatrième colonne .()' Indique que les données entre parenthèses sont transposées .
La deuxième façon
Cliquez d'abord sur la page d'accueil ,Nouvelle variable; Puis modifiez le nom de la variable ; Puis collez les données .
Puis saisissez la commande dans la fenêtre de la ligne de commande ,Enregistrer les données

边栏推荐
- What are the benefits of reserving process edges for PCB production? 2021-10-25
- Getting started with OpenMP
- Knowledge sharing 𞓜 conventional laminated structure of six layer PCB
- VSCode很好,但我以后不会再用了
- WinForm实现窗口始终在顶层
- CAN透传云网关CANIOT,CANDTU记录CAN报文远程收发CAN数据
- el-input实现尾部加字
- Vscode is good, but I won't use it again
- 判断用户是否是第一次进入某个页面
- 三台西门子消防主机FC18配套CAN光端机进行光纤冗余环网组网测试
猜你喜欢

Modular programming of LCD1602 LCD controlled by single chip microcomputer

传统的IO存在什么问题?为什么引入零拷贝的?

挖掘微生物暗物质——新思路

How much do you know about electronic components on PCB?

微信小程序开通客服消息功能开发

权限、认证系统相关名词概念

Function template_ Class template

Four software 2021-10-14 suitable for beginners to draw PCB

Summary of small problems in smartbugs installation

How to resize an image in C #
随机推荐
【深度学习 轻量型backbone】2022 EdgeViTs CVPR
php入门基础记录
将数据导入到MATLAB
@Resource和@Autowired注解的不同,为什么推荐@Resource?
用函数的递归来解决几道有趣的题
环网冗余式CAN/光纤转换器的CAN光端机在消防火灾联网报警系统中的应用
无“米”,也能煮“饭”利用“点云智绘”反演机载LiDAR林下缺失地面点攻略
Keil and Proteus joint commissioning
取消word文档中某些页面的页眉
C#中如何调整图像大小
产品经理专业知识50篇(四)-从问题到能力提升:AMDGF模型工具
Advantages and differences of three kinds of vias in PCB 2021-10-27
Terms and concepts related to authority and authentication system
Invalid Navicat scheduled task
Application of point cloud intelligent drawing in intelligent construction site
ts环境搭建
Share the process requirements for single-layer flexible circuit board
【视频】ffplay 使用mjpeg格式播放usb摄像头
Cifar-10 dataset application: quick start data enhancement method mixup significantly improves image recognition accuracy
1742. maximum number of small balls in the box