pulstran(t,d,p,fs,w)其中t是时间,d为函数5261偏移(如y = func(t-d(1)) + func(t-d(2)) + ... );p是函数类型4102,'gauspuls',表示高斯类型,'tripuls'表示三角类型;fs表示频次;w表示带宽1653。官方解释:pulstran generates pulsetrains from continuous functions or sampled prototype pulses.y = pulstran(t,d,'func') generatesa pulse train based on samples of a continuous function, 'func',where 'func' is'gauspuls', for generating a Gaussian-modulatedsinusoidal pulse'rectpuls', for generating a sampledaperiodic rectangle 'tripuls', for generating a sampledaperiodic triangle pulstran is evaluated length(d) timesand returns the sum of the evaluations y = func(t-d(1)) + func(t-d(2)) + ... The function is evaluated over the range of argument valuesspecified in array t, after removinga scalar argument offset taken from the vector d.Note that func must be a vectorized functionthat can take an array t as an argument.An optional gain factor may be applied to each delayed evaluationby specifying d as a two-column matrix, with theoffset defined in column 1 and associated gain incolumn 2 of d. Note that a row vector will be interpretedas specifying delays only.pulstran(t,d,'func',p1,p2,...) allowsadditional parameters to be passed to 'func' asnecessary. For example:func(t-d(1),p1,p2,...) + func(t-d(2),p1,p2,...) + ...pulstran(t,d,p,fs) generatesa pulse train that is the sum of multiple delayed interpolations ofthe prototype pulse in vector p, sampled at therate fs, where p spansthe time interval [0,(length(p)-1)/fs], and itssamples are identically 0 outside this interval.By default, linear interpolation is used for generating delays.pulstran(t,d,p) assumesthat the sampling rate fs is equal to 1 Hz.This example generates a periodic Gaussian pulse signal at 10 kHz with 50% bandwidth. The pulse repetition frequency is 1 kHz, the sample rate is 50 kHz, and the pulse train length is 10 ms. The repetition amplitude should attenuate by 0.8 each time.调用举例:t = 0 : 1/50e3 : 10e-3;d = [0 : 1/1e3 : 10e-3 ; 0.8.^(0:10)]';y = pulstran(t,d,'gauspuls',10e3,0.5);plot(t,y),pulstran:用来产生周期性的脉冲序2113列5261 1). y=pulstran(t,d,'func'); 产生一个周期序列y,以t为时间轴,是函4102数func的周期展开,展开的周期长1653度由d来定义,比如d=[0 1],那么y就应该等于func(t)+func(t-1);以次类推。其中func可以自己定义,比如rectpuls,tripuls 2). y=pulstran(t,d,'func',p1,p2...); 同一的用法一样,只不过这里的p1,p2...代表了func中的其他参数,比如若func为tripuls,那么这里的p1,p2就和前面所说的w和s对等了www.mh456.com防采集。
要用MATLAB2013a的mex功能重新编译2113一下C文件,但是64位的5261MATLAB没有自带的编译器。所以4102使用mex -setup安装。安装MATLAB2013a支持的1653编译器,有SDK7.1等21个,但是win8的电脑似乎装不了SDK7.1,有SDK8.1 可以装在win8.1 上,但是悲剧的是MATLAB2013用不了SDK8.1.所以想单独装[19] Microsoft Visual C++ 2008 SP1 [20] Microsoft Visual C++ 2010 [21] Microsoft Visual C++ 2012,却说这些是win8系统自带的不能再装了。请问这种情况该怎么办呢?难道要重装系统换成win7用SDK7.1。我还没有MATLAB2014而且也不确定MATLAB2014能否用SDK8.1。总之,如何使MATLAB2013a在win8-64位操作系统下安装mex编译器
我解决了 你安装之前先把时间往前调一下,比如调整到2016年,再按照正常流程,就可以了,如果没有安装包,私我一下 可以给你几个
装SDK7.1的时候会有错2113误提示,5261你注意自己翻译一下,我这边提示是已经4102存在运行库安装中1653断。 没关系,SDK7.1装完了以后就自动把几乎全部运行库重新装好了。 就在控制面板,卸载程序 把该删的都删掉
第一步: 从包装盒中取出w2013a三星手机壳,注意小孔朝上哦!第二步: 把三星手机按箭头方向放入三星手机壳~ 第三步: 左边进去后,再把右边按下去,卡到位~ 第四步: 用手捏一捏三星手机的四周,三星手机
1)首先应重新修复下插件(在终端量化菜单中,其中VBA插件通过修复Excel插件完成)。2)修复插件后使用w=windmatlab出现如下错误:windmatlab:login failedError using=>windmatlab>windmatlab.windmatlab at 212windmatlab:failure to create wind object或者在其他语言使用w.start出现错误。此时很有可能是运行身份或者兼容模式不一致导致的。以下以Matlab为例:通常有两种情况,一是用了不同用户分别运行终端与matlab,让用户用同一个账号运行即可;二是一个用了管理员权限运行,一个没有用管理员权限运行,或者兼容性中的兼容模式不一致。这种情况问题一般出在终端与matlab的设置上,请把权限那一页设置为一样即可。如下图,保证兼容模式、特权登记等地方完全一致内容来自www.mh456.com请勿采集。