matlab报错Function definitions are not permitted at the prompt or in scripts.麻烦帮修改程序能运行这是我的程序function []=expand(q,a,d,t,v0)R=(q*t/(a*pi/6+5000*pi))^(1/3);q=1;a=14363.384;d=0.3;t=100000;v0=3.6;for i=0:24:t/3600if (d*(
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/24 06:45:59
matlab报错Functiondefinitionsarenotpermittedatthepromptorinscripts.麻烦帮修改程序能运行这是我的程序function[]=expand(q
matlab报错Function definitions are not permitted at the prompt or in scripts.麻烦帮修改程序能运行这是我的程序function []=expand(q,a,d,t,v0)R=(q*t/(a*pi/6+5000*pi))^(1/3);q=1;a=14363.384;d=0.3;t=100000;v0=3.6;for i=0:24:t/3600if (d*(
matlab报错Function definitions are not permitted at the prompt or in scripts.麻烦帮修改程序能运行
这是我的程序
function []=expand(q,a,d,t,v0)
R=(q*t/(a*pi/6+5000*pi))^(1/3);
q=1;a=14363.384;d=0.3;t=100000;v0=3.6;
for i=0:24:t/3600
if (d*(i/24))
matlab报错Function definitions are not permitted at the prompt or in scripts.麻烦帮修改程序能运行这是我的程序function []=expand(q,a,d,t,v0)R=(q*t/(a*pi/6+5000*pi))^(1/3);q=1;a=14363.384;d=0.3;t=100000;v0=3.6;for i=0:24:t/3600if (d*(
看了你的问题,我发现,你是把函数在命令行输入运行了,先用编辑器编辑保存,然后再在命令行引用吧