这个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/10/05 22:41:10
这个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:*');