MATLAB max 最大值定义rho_11=sigma_1;rho_22=(1./Z).*sigma_3.*(g_1.*conj(g_1))./((abs(g_1)).^2+1)+sigma_4.*(g_2.*conj(g_2))./((abs(g_2)).^2+1);rho_23=(1./Z).*sigma_3.*g_1./((abs(g_1)).^2+1)+sigma_4.*g_2./((abs(g_2)).^2+1);rho_32=conj(rho_23);rho_3
来源:学生作业帮助网 编辑:作业帮 时间:2024/06/29 02:25:18
![MATLAB max 最大值定义rho_11=sigma_1;rho_22=(1./Z).*sigma_3.*(g_1.*conj(g_1))./((abs(g_1)).^2+1)+sigma_4.*(g_2.*conj(g_2))./((abs(g_2)).^2+1);rho_23=(1./Z).*sigma_3.*g_1./((abs(g_1)).^2+1)+sigma_4.*g_2./((abs(g_2)).^2+1);rho_32=conj(rho_23);rho_3](/uploads/image/z/5250489-33-9.jpg?t=MATLAB+max+%E6%9C%80%E5%A4%A7%E5%80%BC%E5%AE%9A%E4%B9%89rho_11%3Dsigma_1%3Brho_22%3D%281.%2FZ%29.%2Asigma_3.%2A%28g_1.%2Aconj%28g_1%29%29.%2F%28%28abs%28g_1%29%29.%5E2%2B1%29%2Bsigma_4.%2A%28g_2.%2Aconj%28g_2%29%29.%2F%28%28abs%28g_2%29%29.%5E2%2B1%29%3Brho_23%3D%281.%2FZ%29.%2Asigma_3.%2Ag_1.%2F%28%28abs%28g_1%29%29.%5E2%2B1%29%2Bsigma_4.%2Ag_2.%2F%28%28abs%28g_2%29%29.%5E2%2B1%29%3Brho_32%3Dconj%28rho_23%29%3Brho_3)
MATLAB max 最大值定义rho_11=sigma_1;rho_22=(1./Z).*sigma_3.*(g_1.*conj(g_1))./((abs(g_1)).^2+1)+sigma_4.*(g_2.*conj(g_2))./((abs(g_2)).^2+1);rho_23=(1./Z).*sigma_3.*g_1./((abs(g_1)).^2+1)+sigma_4.*g_2./((abs(g_2)).^2+1);rho_32=conj(rho_23);rho_3
MATLAB max 最大值定义
rho_11=sigma_1;
rho_22=(1./Z).*sigma_3.*(g_1.*conj(g_1))./((abs(g_1)).^2+1)+sigma_4.*(g_2.*conj(g_2))./((abs(g_2)).^2+1);
rho_23=(1./Z).*sigma_3.*g_1./((abs(g_1)).^2+1)+sigma_4.*g_2./((abs(g_2)).^2+1);
rho_32=conj(rho_23);
rho_33=(1./Z).*(sigma_3./((abs(g_1)).^2+1)+(sigma_4)./((abs(g_2)).^2+1));
rho_44=sigma_2;
Z=sigma_1+sigma_2+sigma_3+sigma_4;
C=2.*max{0,abs(rho_23)-sqrt(rho_11.*rho_44)};
plot(B,C);
set(gca,'FontSize',14)
xlabel('B');ylabel('C')
axis([0 10 0 0.4]);
set(gca,'LineWidth',1.5)
出现 Undefined variable "max" or class "max".max,这里怎么不对呢,怎样定义?
MATLAB max 最大值定义rho_11=sigma_1;rho_22=(1./Z).*sigma_3.*(g_1.*conj(g_1))./((abs(g_1)).^2+1)+sigma_4.*(g_2.*conj(g_2))./((abs(g_2)).^2+1);rho_23=(1./Z).*sigma_3.*g_1./((abs(g_1)).^2+1)+sigma_4.*g_2./((abs(g_2)).^2+1);rho_32=conj(rho_23);rho_3
max(.)
用小括号,不用大括号