求matlab大神看我的程序哪里错了额y=[100,70,60,30,20,10,10,0,0,60,40,30]’;x4=[5,10,15,5,10,15,5,10,15,5,10,15];x2=[0,0,0,0,0,0,15,15,15,20,20,20];x3=[1.5,2.5,3.5,0.5,1.5,1.3,1.2,1.5,1.2,0.9,0.7,0.9];x41=[1.75*pi,1.75*pi,1.75*pi,1.75*pi,1

来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/24 11:47:58
求matlab大神看我的程序哪里错了额y=[100,70,60,30,20,10,10,0,0,60,40,30]’;x4=[5,10,15,5,10,15,5,10,15,5,10,15];x2=[

求matlab大神看我的程序哪里错了额y=[100,70,60,30,20,10,10,0,0,60,40,30]’;x4=[5,10,15,5,10,15,5,10,15,5,10,15];x2=[0,0,0,0,0,0,15,15,15,20,20,20];x3=[1.5,2.5,3.5,0.5,1.5,1.3,1.2,1.5,1.2,0.9,0.7,0.9];x41=[1.75*pi,1.75*pi,1.75*pi,1.75*pi,1
求matlab大神看我的程序哪里错了额
y=[100,70,60,30,20,10,10,0,0,60,40,30]’;
x4=[5,10,15,5,10,15,5,10,15,5,10,15];
x2=[0,0,0,0,0,0,15,15,15,20,20,20];
x3=[1.5,2.5,3.5,0.5,1.5,1.3,1.2,1.5,1.2,0.9,0.7,0.9];
x41=[1.75*pi,1.75*pi,1.75*pi,1.75*pi,1.75*pi,1.75*pi,1.75*pi,1.75*pi,1.75*pi,1.75*pi,1.75*pi,1.75*pi];
x31=[0,0,0,0.5*pi,0.5*pi,0.5*pi,pi,pi,pi,1.5*pi,1.5*pi,1.5*pi];
x51=x31-x41
x32=x3.*x5
X=[ones(size(x4)),x2,x32,x4]
[b,bint,r,rint,stats]=regress(y,X)
每次都是最后一步说y和X的行数不相等··为毛不相等啊···该怎么写呀

求matlab大神看我的程序哪里错了额y=[100,70,60,30,20,10,10,0,0,60,40,30]’;x4=[5,10,15,5,10,15,5,10,15,5,10,15];x2=[0,0,0,0,0,0,15,15,15,20,20,20];x3=[1.5,2.5,3.5,0.5,1.5,1.3,1.2,1.5,1.2,0.9,0.7,0.9];x41=[1.75*pi,1.75*pi,1.75*pi,1.75*pi,1

除最后一行外,程序里还有两个低级错误:

1、第一行的转置符为中文字符;

2、倒数第三行x32=x3.*x5的x5疑应为x51.

修改建议:

y=[100,70,60,30,20,10,10,0,0,60,40,30]';
x4=[5,10,15,5,10,15,5,10,15,5,10,15];
x2=[0,0,0,0,0,0,15,15,15,20,20,20];
x3=[1.5,2.5,3.5,0.5,1.5,1.3,1.2,1.5,1.2,0.9,0.7,0.9];
x41=[1.75*pi,1.75*pi,1.75*pi,1.75*pi,1.75*pi,1.75*pi,1.75*pi,1.75*pi,1.75*pi,1.75*pi,1.75*pi,1.75*pi];
x31=[0,0,0,0.5*pi,0.5*pi,0.5*pi,pi,pi,pi,1.5*pi,1.5*pi,1.5*pi];
x51=x31-x41
x32=x3.*x51
X=[ones(size(x4))',x2',x32',x4'];
[b,bint,r,rint,stats]=regress(y,X)

高手看一下我的matlab程序哪里错了function y=rrp(x) % % Input paramenters % % x(1)=theta-1 % x(2)=the 求大神帮我看一下下边程序哪里出错了?输出整数x到y之间的所有素数.输入100,200,结果如下: 求matlab大神看我的程序哪里错了额y=[100,70,60,30,20,10,10,0,0,60,40,30]’;x4=[5,10,15,5,10,15,5,10,15,5,10,15];x2=[0,0,0,0,0,0,15,15,15,20,20,20];x3=[1.5,2.5,3.5,0.5,1.5,1.3,1.2,1.5,1.2,0.9,0.7,0.9];x41=[1.75*pi,1.75*pi,1.75*pi,1.75*pi,1 急用,好心的大神,MATLAB 方程编码求指点[x,y]=meshgrid(50:.1:60,19:49);z=50-sqrt(3600-y.^2-(120+y).*sqrt(625-x.^2));mesh(x,y,z)请帮我看看这个编码哪里错了,心都伤了,折腾两天就是出不了程序,方程正确,画不了图 matlab画图x = 0:0.01:10; y =sin(2*x)*cos(100*x)/(2*x); plot(x, y)这个程序为什么matlab总是报错?哪里错了?求大神赐教 matlab高手帮忙看程序!我要画matlab图,f 随x,y变化,怎么不会出现图形呢,程序如下,请大师帮忙看程序哪里出错了,clcx=0:0.2:10;y=x;f=x.^5.*y.^5.*0.1.^(y-1).*0.3.^(y-1).*0.5.^(y-1).*0.8.^(y-1).*0.9.^(y-1).*exp(-x.*(0.1.^y 用matlab画z=(1+(4*y.^2-1.9)./x.^2+1./x.^4)./(0.4*x*y)的等值线图画出来的效果图应该如下,但试了好几遍都没画成功.求大神帮我写一下程序. 谁能帮我看一下这个程序哪里错了? 关于matlab 的函数画出3维图形的m文件说是3维,其实我想画的是4维.用颜色表示最后一维,来帮我看下程序哪里错了好么?我3维的程序是[x,y] = meshgrid(0:0.1:20,-5:0.1:5); %定义函数 c=2*pi*y./sqrt(x.^2+y.^2+ep MATLAB 多元回归 t检验自变量是x1-x4,因变量y改了一点程序向用还是用不了,求大神看下.谁再能解释下程序的意思.z=[x1,x2,x3,x41,x42];y=A(:,1); % example[n,k]=size(z);X=[ones(n,1),z];%构建结构阵XB=X'*X; %求算信 t=0:0.1:8; y=sin.^2(t./8); plot(t,y) matlab画图,程序哪里错了,我觉得问题在第二行, 求大神用matlab帮忙做三维图,求程序x,y的取值范围0-5000 求大神帮我看看matlab我编的程序错在哪里,怎么修改?要编的是这个方程,nT=88,C0,G0,Ck,Gk都是88*88矩阵,u(s)经傅里叶变换为88*2049矩阵,B为单位阵,s为2049*1的矩阵.求X(s).我编的程序如下,有错误, 我的matlab程序哪里错了? t=0:0.01:2*pi x=cos(t)^3 y=sin(t)^3 plot(x,y) 总是显示? Error using ==> 大神帮我看下我哪里错了. 求微分大神帮忙看一下我哪里错了,跟答案不一样 matlab牛顿迭代法求方程根程序求大神帮写个牛顿迭代法解方程的程序. 关于matlab求最小值最小值点的问题求大神附上matlab程序