当前位置:网站首页>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

边栏推荐
- El input to add words to the tail
- Analysis of kinsing dual platform mining family virus
- OpenMP入门
- Storage of Galileo broadcast ephemeris in rtklib-b33
- 神经网络与深度学习-3- 机器学习简单示例-PyTorch
- 个人域名和企业域名的区别
- 2160. minimum sum of the last four digits after splitting
- 1742. 盒子中小球的最大数量
- 基于Anaconda的模块安装与注意事项
- Tips on how to design soft and hard composite boards ~ 22021/11/22
猜你喜欢

How to resize an image in C #

Find out what informatization is, and let enterprises embark on the right path of transformation and upgrading

How much do you know about electronic components on PCB?
![[distillation] pointdistiller: structured knowledge distillationwards efficient and compact 3D detection](/img/5c/ad42474a363c33ecc0e01890b65bbf.png)
[distillation] pointdistiller: structured knowledge distillationwards efficient and compact 3D detection

Cifar-10 dataset application: quick start data enhancement method mixup significantly improves image recognition accuracy

年后求职找B端产品经理?差点把自己坑惨了......

【深度学习 轻量型backbone】2022 EdgeViTs CVPR

Pcb|about FPC reinforcement type

Requirements for Power PCB circuit board design 2021-11-09

Modular programming of wireless transmission module nRF905 controlled by single chip microcomputer
随机推荐
el-input实现尾部加字
C# 读取web上的xml
opencv最小值滤波(不局限于图像)
VSCode很好,但我以后不会再用了
Modular programming of LCD1602 LCD controlled by single chip microcomputer
realsense d455 semantic_ Slam implements semantic octree mapping
(tool class) use SecureCRT as the communication medium
What are the benefits of reserving process edges for PCB production? 2021-10-25
@The difference between resource and @autowired annotation, why recommend @resource?
Share the process requirements for single-layer flexible circuit board
Terms and concepts related to authority and authentication system
Estimation of dense forest volume based on LIDAR point cloud with few ground points
Requirements for Power PCB circuit board design 2021-11-09
C reads XML on the web
Five causes of PCB board deformation and six solutions 2021-10-08
Accès à la boîte aux lettres du nom de domaine Lead à l'étranger
One "stone" and two "birds", PCA can effectively improve the dilemma of missing some ground points under the airborne lidar forest
Modular programming of oled12864 display controlled by single chip microcomputer
AttributeError: ‘Upsample‘ object has no attribute ‘recompute_ scale_ factor‘
@Resource和@Autowired注解的不同,为什么推荐@Resource?