Vous êtes sur la page 1sur 4

>> ca=0.045.*(1-x).

/(1)

Undefined function or variable 'x'.

>> x=[0:0.01:1];

>>

>> ca=0.045.*(1-x)./(1-0.1.*x)

ca =

Columns 1 through 13

0.0450 0.0446 0.0442 0.0438 0.0434 0.0430 0.0426 0.0421 0.0417 0.0413
0.0409 0.0405 0.0401

Columns 14 through 26

0.0397 0.0392 0.0388 0.0384 0.0380 0.0376 0.0372 0.0367 0.0363 0.0359
0.0355 0.0350 0.0346

Columns 27 through 39

0.0342 0.0338 0.0333 0.0329 0.0325 0.0320 0.0316 0.0312 0.0307 0.0303
0.0299 0.0294 0.0290

Columns 40 through 52

0.0286 0.0281 0.0277 0.0272 0.0268 0.0264 0.0259 0.0255 0.0250 0.0246
0.0241 0.0237 0.0232

Columns 53 through 65

0.0228 0.0223 0.0219 0.0214 0.0210 0.0205 0.0201 0.0196 0.0191 0.0187
0.0182 0.0178 0.0173
Columns 66 through 78

0.0168 0.0164 0.0159 0.0155 0.0150 0.0145 0.0140 0.0136 0.0131 0.0126
0.0122 0.0117 0.0112

Columns 79 through 91

0.0107 0.0103 0.0098 0.0093 0.0088 0.0083 0.0079 0.0074 0.0069 0.0064
0.0059 0.0054 0.0049

Columns 92 through 101

0.0045 0.0040 0.0035 0.0030 0.0025 0.0020 0.0015 0.0010 0.0005 0

>> ca=0.045.*(1-x)./(1)

ca =

Columns 1 through 12

0.0450 0.0445 0.0441 0.0436 0.0432 0.0427 0.0423 0.0418 0.0414 0.0410
0.0405 0.0401

Columns 13 through 24

0.0396 0.0391 0.0387 0.0382 0.0378 0.0373 0.0369 0.0365 0.0360 0.0355
0.0351 0.0347

Columns 25 through 36

0.0342 0.0338 0.0333 0.0328 0.0324 0.0319 0.0315 0.0310 0.0306 0.0301
0.0297 0.0292
Columns 37 through 48

0.0288 0.0284 0.0279 0.0274 0.0270 0.0265 0.0261 0.0257 0.0252 0.0248
0.0243 0.0239

Columns 49 through 60

0.0234 0.0229 0.0225 0.0221 0.0216 0.0211 0.0207 0.0202 0.0198 0.0193
0.0189 0.0185

Columns 61 through 72

0.0180 0.0176 0.0171 0.0166 0.0162 0.0158 0.0153 0.0149 0.0144 0.0140
0.0135 0.0131

Columns 73 through 84

0.0126 0.0122 0.0117 0.0113 0.0108 0.0103 0.0099 0.0094 0.0090 0.0085
0.0081 0.0077

Columns 85 through 96

0.0072 0.0068 0.0063 0.0059 0.0054 0.0049 0.0045 0.0040 0.0036 0.0032
0.0027 0.0023

Columns 97 through 101

0.0018 0.0014 0.0009 0.0005 0

>> ca=0.045.*(1-x)./(1-0.1.*x);

>> cb=0.045.*(0.84-0.5.*x)./(1-0.1.*x);

>> cc=0.045.*(x./(1-0.1.*x));
>> x=[0:0.01:1];

>> plot(x(1:),ca(1:),x(1:),cb(1:),'r',x(1:),cc(1:),'k')

plot(x(1:),ca(1:),x(1:),cb(1:),'r',x(1:),cc(1:),'k')

Error: Unbalanced or unexpected parenthesis or bracket.

>> plot(x(1,:),ca(1,:),x(1,:),cb(1,:),'r',x(1,:),cc(1,:),'k')

>> legend('ca','cb','cc')

>> xlabel('converción (mol/L)');title('caocnentracion vs conversion _ SANDY')

>>

>> cI=0.045.*3.16;

>> cI=0.045.*3.16*(1./(1-0.1*x));

>> hold on

>> plot(x(1,:),ca(1,:),x(1,:),cb(1,:),'r',x(1,:),cc(1,:),'k',ci(1,:),'g')

Undefined variable ci.

Did you mean:

>> plot(x(1,:),ca(1,:),x(1,:),cb(1,:),'r',x(1,:),cc(1,:),'k',x(1,:),cI(1,:),'g')

>> legend('ca','cb','cc','cI')

>> xlabel('converción (mol/L)');title('concentración vs converción _ SANDY')

>>

Vous aimerez peut-être aussi