执行程序:
% clear;clc
data_mulu='E:\fy\Data\A23\';%%%%%%%%%%%被调用的文件路径
flnm00=strcat(data_mulu,'1324-A26-2-8-18-13-2010-05-04-10-26-56.dat'))%%%%%%%%%%flnm00指被调用的文件名
A =load(flnm00,'-mat')
运行结果:
flnm00 =
E:\fy\Data\A23\1324-A26-2-8-18-13-2010-05-04-10-26-56.dat
显示结果时出现如下红色报警错误
??? Java exception occurred:
java.lang.UnsatisfiedLinkError: Can't load library: D:\Program Files\matlab\toolbox\instrument\instrumentadaptors\win32\mwagilentvisa.dll
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.load0(Unknown Source)
at java.lang.System.load(Unknown Source)
at com.mathworks.toolbox.instrument.VisaAGILENT.<init>(VisaAGILENT.java:23)
at com.mathworks.toolbox.instrument.VISA.createVisaObject(VISA.java:37)
at com.mathworks.toolbox.instrument.GpibVisa.<init>(GpibVisa.java:115)
Error in ==> visa.loadobj at 91
propInfo(i).obj = handle(com.mathworks.toolbox.instrument.GpibVisa(constructorArgs{:}));