发布时间:2023-11-24 11:00
读取npy格式文件
import numpy as np
data_a=np.load('C:/Users/YX/Desktop/data.npy')
import numpy as np
a = np.array([1,2,3],[4,5,6])
np.save('adress/name',a)
adress:存储的文件地址
name:存储的名称
例如:C:/Users/YX/Desktop/data
最后就会在桌面上有一个名称为data的npy格式文件
import scipy.io as scio
scio.loadmat('C:/Users/YX/Desktop/data.mat')['name'][0,:]
说明:-------------------------------↑1-----------------------------------↑2-----↑3—
箭头1为:数据存储的位置
箭头2为:数据在matlab中的名称
箭头3为:你需要数据中的哪一行
# 储存mat
import scipy.io as scio
datafile = 'C:/Users/YX/Desktop/Zxx.mat'
scio.savemat(datafile,{'data':Zxx_new})
说明:
第一行中:datafile为存储的文件地址,最后的Zxx.mat为最终存储的文件名
第二行中:data为数据导入matlab后,matlab里显示的名称
Zxx_new为python中变量的名称
【深入理解TcaplusDB技术】TcaplusDB 表管理——修改表
2、Deep Learning in Higher Dimensions
香蕉派 Banana PI BPI M2 Berry 开源硬件开发板全志V40 芯片设计
Video.js 使用教程 - 手把手教你基于 Vue 搭建 HTML 5 视频播放器
获取rawimage的像素点函数_[Unity3D]用RawImage给单个3D物体描边
PyTorch Bug 记录:one of the variables needed for gradient computation has been modified by an inplace
老顽固在13英寸苹果笔记本MacBook Air上开发C#.NET程序的感受浅谈