下面这语句错在哪里?clc;clear; syms c1 c2 xfor c1=(1+eps):.1:2;for c2=
来源:学生作业帮 编辑:神马作文网作业帮 分类:综合作业 时间:2024/11/17 05:38:42
下面这语句错在哪里?
clc;clear; syms c1 c2 x
for c1=(1+eps):.1:2;
for c2=0:.1:1;
k=2;M=[c1 c2];
y=k*x^(c1-1)-(1-x)^(c2-1);xx=solve(y,x);
for i=1:1:length(xx);
g=(c1-1)*k*xx(i)^(c1-2)-(c2-1)*(1-xx(i))^(c2-2);
aa=solve(g,xx(i)); %matlab说这里有问题,但我不懂啊,求救~
if aa0;
M=100;
end
end
end
end
image(M)
clc;clear; syms c1 c2 x
for c1=(1+eps):.1:2;
for c2=0:.1:1;
k=2;M=[c1 c2];
y=k*x^(c1-1)-(1-x)^(c2-1);xx=solve(y,x);
for i=1:1:length(xx);
g=(c1-1)*k*xx(i)^(c1-2)-(c2-1)*(1-xx(i))^(c2-2);
aa=solve(g,xx(i)); %matlab说这里有问题,但我不懂啊,求救~
if aa0;
M=100;
end
end
end
end
image(M)
aa=solve(g,xx(i)); 这里的xx(i),不是未知数,g的表达式里也都是已知量,aa=solve(y,x)中应该x是未知量,y是x的函数才行.
下面这语句错在哪里?clc;clear; syms c1 c2 xfor c1=(1+eps):.1:2;for c2=
简化MATLAB程式clc; clear ;k=1;C=0.5;C1=1;C2=2;for h=-5:0.01:5x(k
矩阵A=2 1 -1 2 1 0 1 -1 1 变换c3:c1+c2 c2:c1-2c2
main(){ unsigned c1=0xff,c2=0x00;c1=c2|c1>>2;c2=c1^0236;prin
C1:C2= C2:C3=5 C1:C3=1 的判断矩阵
执行下列程序后~c3的数值是多少?int c1=1,c2=2,c3; c3=c1/c2;
int c1=1,c2=2,c3; c3=1.0/c2*c1; c3的值为什么等于0呢?
已知抛物线C1:y=x*2-4x+3,将C1绕点P(t,1)旋转180°得C2,若C2的顶点在抛物线C1上,求C2解析式
出一组EXCEL随机数C1,C2,C3,C4,C5,要求:C1+C2+C3+C4+C5=1,C1>B1.
表格问题,当A1等于1时,C2=C1-B2;当A1等于2时,C2=C1+B2.求C2公式……
char c1,c2; c1=197; c2=198; printf("c1=%c,c2=%c\n",c1,c2); p
main() { char c1,c2 scanf("%c",&c1):c2=c1-32; prantf("%c",c2