here’s my code.

elevation = cvx(zeros(n,m));

for i = 1:n

for j = 1:m

elevation(i,j) = UAV_vertical_trajectory(1,j)/norm( [hor_distance0( i,j) UAV_vertical_trajectory( 1,j )] );

end

end

Where UAV_vertical_trajectory is a 1*m matrix variable ,and hor_distance0 is a known n*m matrix.

When I run the code,the result I get is :Disciplined convex programming error:

Cannot perform the operation: {real affine} ./ {convex}

I hope your help,thanks.