早教吧作业答案频道 -->其他-->
这个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.
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.
▼优质解答
答案和解析
没什么问题的,你再吧我的代码复制,运行一遍看看:
clear all;clc;
t=[0:pi/25:8*pi];
y=sin(t);
plot(t,y,'b:*');
看了 这个matlab的M文件为何...的网友还看了以下:
请问Y'=(lnx)^x等于多少我的答案是:高lnx=a令:y'=a^x求导,再代入lnx.a^x 2020-05-13 …
这个matlab的M文件为何无法绘制?close all clc clear t=[0:pi/25 2020-05-16 …
Matlab的作图命令,x = 0:pi/100:2*pi; y = sin(x); plot(x 2020-05-16 …
为什么用matlab画出的图是折线形式,怎样修改使默认为曲线比如t=0:pi;y=sin(t);p 2020-05-16 …
非齐次二阶微分方程原方程y``-2y`+5y=e^x(cos2x)特解:y*=xe^x(Acos2 2020-05-20 …
判断三维空间中一点在直线上的方法我想的是通过三维空间直线坐标的两点式来确定:有3个点,p,a,b. 2020-06-14 …
忘了,二次函数的两根式咋代入应用啊?在线等~速度阿!RT,y=a(x-x1)(x-x2)举个例子吧 2020-06-23 …
matlab中此式子是什么意思x=0:pi/10:2*pi;y=sin(x);plot([x;x; 2020-07-24 …
方程组为x+2*y=4;x^2+y^2=8;方程组会解symsxyeq1=x+2*y-4;eq2=x 2020-11-01 …
已知实数x,y,a,满足根号下x+y-8加根号下8-x-y=根号下3x-y-a加根号下x-2y+a+ 2020-11-01 …