Matlab问题,错误Incomplete or misformed expression or statement.帮
来源:学生作业帮 编辑:搜狗做题网作业帮 分类:综合作业 时间:2024/08/17 03:29:47
Matlab问题,错误Incomplete or misformed expression or statement.帮帮忙啊
clear
sn=0.1;0.01:100;
snlg=20*log10(sn);
sdouble=sqrt(sn);
ssingle=sqrt(sn/2);
bdouble=Q(sdouble);
bsingle=Q(ssingle);
semilogy(snlg,bdouble);
hold;
semilogy(snlg,bsingle,'--');
axis([-20,30,0.0000001,1]);
i=1100;
while(i
clear
sn=0.1;0.01:100;
snlg=20*log10(sn);
sdouble=sqrt(sn);
ssingle=sqrt(sn/2);
bdouble=Q(sdouble);
bsingle=Q(ssingle);
semilogy(snlg,bdouble);
hold;
semilogy(snlg,bsingle,'--');
axis([-20,30,0.0000001,1]);
i=1100;
while(i
![Matlab问题,错误Incomplete or misformed expression or statement.帮](/uploads/image/z/15202740-12-0.jpg?t=Matlab%E9%97%AE%E9%A2%98%2C%E9%94%99%E8%AF%AFIncomplete+or+misformed+expression+or+statement.%E5%B8%AE)
第22行加多一个),改为
if(bsingle(i)
再问: 这个我改过了,可是又说bsn没有定义,怎么定义呢,现在在学习中,谢谢了
再答: 可能是计算bsn的条件没有满足。在第二行加bsn=[]; 试试
再问: 不行哦,??? Error using ==> vertcat All rows in the bracketed expression must have the same number of columns.
再答: 是哪一行出错呢?vertcat在哪里出现过?是在Q函数里?没有Q函数我也运行不了。
再问: 那个是我打错了,应该是sn=0.1:0.01:100; Q函数是function y=Q(x) y=erfc(x)/sqrt(2); 帮忙运行下
if(bsingle(i)
再问: 这个我改过了,可是又说bsn没有定义,怎么定义呢,现在在学习中,谢谢了
再答: 可能是计算bsn的条件没有满足。在第二行加bsn=[]; 试试
再问: 不行哦,??? Error using ==> vertcat All rows in the bracketed expression must have the same number of columns.
再答: 是哪一行出错呢?vertcat在哪里出现过?是在Q函数里?没有Q函数我也运行不了。
再问: 那个是我打错了,应该是sn=0.1:0.01:100; Q函数是function y=Q(x) y=erfc(x)/sqrt(2); 帮忙运行下
matlab提示:Incomplete or misformed expression or statement.
matlab提示Error:Incomplete or misformed expression or statemen
Matlab解方程组时 提示错误' is not a valid expression or equation.下面的程
Matlab解方程时提示错误“**is not a valid expression or equation.”
matlab程序运行出现the statement is incomplete的错误,下面是程序,请问怎样解决
MATLAB错误:Unbalanced or misused parentheses or brackets,
matlab解方程老出现is not a valid expression or equation.
matlab求解方程的时候出现 is not a valid expression or equation.
matlab 数值解法老是提示出is not a valid expression or equation.
matlab中function和end问题,错误提示This statement is not inside any f
Write the word or expression according to the given meaning
英语翻译Don't use words,expression or phrases_____only to people