This my code of 2 variables and 2 constraints but getting problem .As my obj. funtion is convex .please help me .

clc;

clear all;

Treq=22.2*10^-6;
Tframe=50*10^-3;

Tack=7.5

*10^-6;*

BIFS=7.510^-6;

BIFS=7.5

L=100;

Ttran=1

*10^-3;*

R=1.72810^6;

R=1.728

SIFS=2.5

*10^-6;*

Sidle=Treq+BIFS;

Scoll=Sidle;

Ssucc=Treq+SIFS+Tack+BIFS;

cvx_begin

variable M

variable p

Tcop=M((Sidle/(L.*p))+Ssucc+((1./((L.

Sidle=Treq+BIFS;

Scoll=Sidle;

Ssucc=Treq+SIFS+Tack+BIFS;

cvx_begin

variable M

variable p

Tcop=M

*p)*((1-p)^(L-1)))-(1./(L.*p)-1))*Scoll));

minimize -(M.

*R*Ttran)

subject to

Tcop+M.

*Ttran <= Tframe;*

0 <= p <= 1;

cvx_end

disp('values are ');

disp(M);

disp§;

disp(Tcop)

ERROR:

Error using .(line 173)

0 <= p <= 1;

cvx_end

disp('values are ');

disp(M);

disp§;

disp(Tcop)

ERROR:

Error using .

Disciplined convex programming error:

Cannot perform the operation: {positive constant} ./ {real affine}

Error in ./ (line 19)

z = times( x, y, ‘./’ );

Error in * (line 36)

z = feval( oper, x, y );

Error in / (line 15)

z = mtimes( x, y, ‘rdivide’ );

Error in iit (line 17)

Tcop=M*((Sidle/(L.*p))+Ssucc+((1./((L.*p)*((1-p)^(L-1)))-(1./(L.*p)-1))*Scoll));