matlab函数中中括号提示前半截有错~function[t st]=lpf(f,sf,B)df=f(2)-f(1);hf=zeros(1,length(f));bf=[-floor(B/df):floor(B/df)]+floor(length(f)/2);hf(bf)=1;yf=hf.*sf;[t,st]=F2T(f,yf);st=real(st);第四行提示前半个中括号有错,但

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/01 04:06:40
matlab函数中中括号提示前半截有错~function[t st]=lpf(f,sf,B)df=f(2)-f(1);hf=zeros(1,length(f));bf=[-floor(B/df):floor(B/df)]+floor(length(f)/2);hf(bf)=1;yf=hf.*sf;[t,st]=F2T(f,yf);st=real(st);第四行提示前半个中括号有错,但

matlab函数中中括号提示前半截有错~function[t st]=lpf(f,sf,B)df=f(2)-f(1);hf=zeros(1,length(f));bf=[-floor(B/df):floor(B/df)]+floor(length(f)/2);hf(bf)=1;yf=hf.*sf;[t,st]=F2T(f,yf);st=real(st);第四行提示前半个中括号有错,但
matlab函数中中括号提示前半截有错~
function[t st]=lpf(f,sf,B)
df=f(2)-f(1);
hf=zeros(1,length(f));
bf=[-floor(B/df):floor(B/df)]+floor(length(f)/2);
hf(bf)=1;
yf=hf.*sf;
[t,st]=F2T(f,yf);
st=real(st);
第四行提示前半个中括号有错,但是我试过不是输入法的问题,

matlab函数中中括号提示前半截有错~function[t st]=lpf(f,sf,B)df=f(2)-f(1);hf=zeros(1,length(f));bf=[-floor(B/df):floor(B/df)]+floor(length(f)/2);hf(bf)=1;yf=hf.*sf;[t,st]=F2T(f,yf);st=real(st);第四行提示前半个中括号有错,但
没问题的
matlab的提示分错误和警告
这个可能连警告都不算,只是一般推荐语法罢了
可以editor中相应位置右键菜单抵制之,也可以配置参数里定义提示信息等级