执行出错:Error:File:C:\MATLAB7\work\sta.m Line:4 Column:32 Incom
来源:学生作业帮 编辑:作业帮 分类:综合作业 时间:2024/05/21 23:38:53
执行出错:Error:File:C:\MATLAB7\work\sta.m Line:4 Column:32 Incomplete or misformed expres
function snext = sta(a)
switch a
case 0:
snext=4
case 1:
snext=1
case 2:
snext=1
case 3:
snext=2
otherwise:
snext=1
end
保存为sta.m文件
然后在matlab中调用sta(1)
执行出错:
Error:File:C:\MATLAB7\work\sta.m Line:4 Column:32
Incomplete or misformed expression or statement.
什么原因啊?
function snext = sta(a)
switch a
case 0:
snext=4
case 1:
snext=1
case 2:
snext=1
case 3:
snext=2
otherwise:
snext=1
end
保存为sta.m文件
然后在matlab中调用sta(1)
执行出错:
Error:File:C:\MATLAB7\work\sta.m Line:4 Column:32
Incomplete or misformed expression or statement.
什么原因啊?
function snext = sta(a)
switch a
case 0
snext=4
case 1
snext=1
case 2
snext=1
case 3
snext=2
otherwise
snext=1
end
switch a
case 0
snext=4
case 1
snext=1
case 2
snext=1
case 3
snext=2
otherwise
snext=1
end
执行出错:Error:File:C:\MATLAB7\work\sta.m Line:4 Column:32 Incom
Error:File:C:\MATLAB7\work\Untitled.m Line:1 Column:1 Missin
Error:File:C:\MATLAB7\work\apriori.m Line:1 Column:24 Missin
Error:File:C:\MATLAB7\work\Untitled5.m Line:20 Column:1怎么办
Error:File:C:\MATLAB7\work\jacobi.m Line:22 Column:9 This st
matlab报错?Error:File:D:\matlab7\work\fitness.m Line:1 Column:
Error:File:d:\MATLAB7\work\Untitled.m Line:31 Column:7This s
Error:File:D:\MATLAB\MATLAB7.0\work\Untitled.m Line:23 Colum
用matlab,提示错误?Error:File:D:\m\work\Untitled.m Line:16 Column:
MATLAB的问题.Error:File:F:\work\Untitled3.m Line:1 Column:9 Mis
Error:File:E:\matlab\work\Untitled4.m Line:39 Column:116 Thi
Error:File:D:\MATLAB\temp\work\Untitled2.m Line:2 Column:25