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/12/02 09:20:42
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*(
xn0_Ś4Qĉn@<8aM0ub 0v`[ח-HMB _|v-kP@akӽzG!YC^) a$@̒ IԈCz EO8lro}:wvj|),y4KM*"%T唚3L!f"\[ .WVf`UlUA* GCŨ.!ՍY1Aϔjnm:/b6&{NyşLr8ԍrGrxm{C_uPn#%Oĭ|ɽ N͜=(ru=9N_ڲ{ 姎|ۛrُx5ޘMSg?hHϙ B:둈Rե_T׹O#>oM-`CP8@}4tM'4 iضF LMz4;ضk5 lU9 a,"g{Dwl)(,״]zػ"Kt5f~

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*(

看了你的问题,我发现,你是把函数在命令行输入运行了,先用编辑器编辑保存,然后再在命令行引用吧