这个matlab的M文件为何无法绘制?close all clc clear t=[0:pi/25:8*pi]; y=sin(t); plot(t,y,'b:*'); 错误显示? Attempt to execute SCRIPT plot as a function. Error in ==> plot at 6 plot(t,y,'b:*');还有我在命令窗口输入文件名为何

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/02 13:50:49
这个matlab的M文件为何无法绘制?close all clc clear t=[0:pi/25:8*pi]; y=sin(t); plot(t,y,'b:*'); 错误显示? Attempt to execute SCRIPT plot as a function. Error in ==> plot at 6 plot(t,y,'b:*');还有我在命令窗口输入文件名为何

这个matlab的M文件为何无法绘制?close all clc clear t=[0:pi/25:8*pi]; y=sin(t); plot(t,y,'b:*'); 错误显示? Attempt to execute SCRIPT plot as a function. Error in ==> plot at 6 plot(t,y,'b:*');还有我在命令窗口输入文件名为何
这个matlab的M文件为何无法绘制?
close all clc clear t=[0:pi/25:8*pi]; y=sin(t); plot(t,y,'b:*'); 错误显示? Attempt to execute SCRIPT plot as a function. Error in ==> plot at 6 plot(t,y,'b:*');
还有我在命令窗口输入文件名为何也不行?
>> work.m
? The function, script, or class work
cannot be indexed using {} or . indexing.
或者
>> zsqf1.m
? The function, script, or class zsqf1
cannot be indexed using {} or . indexing.

这个matlab的M文件为何无法绘制?close all clc clear t=[0:pi/25:8*pi]; y=sin(t); plot(t,y,'b:*'); 错误显示? Attempt to execute SCRIPT plot as a function. Error in ==> plot at 6 plot(t,y,'b:*');还有我在命令窗口输入文件名为何

没什么问题的,你再吧我的代码复制,运行一遍看看:

clear all;clc;
t=[0:pi/25:8*pi]; 
y=sin(t); 
plot(t,y,'b:*');