谁知道下面这句matlab程序的每句意思,急求注解.谢谢.daqregister('nidaq')ai=analoginput('nidaq',1)ch0=addchannel(ai,0)ai.samplerate=30ai.samplesPerTrigger=900ai.Triggertype='immediate' out=daqhwinfo(ai)outstart(ai)data=getdata(ai)mean

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/26 12:17:52
谁知道下面这句matlab程序的每句意思,急求注解.谢谢.daqregister(''nidaq'')ai=analoginput(''nidaq'',1)ch0=addchannel(ai,0)ai.sam

谁知道下面这句matlab程序的每句意思,急求注解.谢谢.daqregister('nidaq')ai=analoginput('nidaq',1)ch0=addchannel(ai,0)ai.samplerate=30ai.samplesPerTrigger=900ai.Triggertype='immediate' out=daqhwinfo(ai)outstart(ai)data=getdata(ai)mean
谁知道下面这句matlab程序的每句意思,急求注解.谢谢.
daqregister('nidaq')
ai=analoginput('nidaq',1)
ch0=addchannel(ai,0)
ai.samplerate=30
ai.samplesPerTrigger=900
ai.Triggertype='immediate'
out=daqhwinfo(ai)
out
start(ai)
data=getdata(ai)
mean(data)
stop(ai)
delete(ai)
clear ai

谁知道下面这句matlab程序的每句意思,急求注解.谢谢.daqregister('nidaq')ai=analoginput('nidaq',1)ch0=addchannel(ai,0)ai.samplerate=30ai.samplesPerTrigger=900ai.Triggertype='immediate' out=daqhwinfo(ai)outstart(ai)data=getdata(ai)mean
你这个是基于MATLAB远程控制程序,程序不难,你看看是对什么仪器进行的.其中data=getdata(ai)是获取ai中数据,mean(data)是计算平均值