大侠帮忙,matlab解方程组 (5个方程,5个未知数)

2024-11-30 14:02:21
推荐回答(1个)
回答1:

A=solve('1/lambda_s+1/lambda_i-1/1064','n_p/1064-n_s/lambda_s-n_i/lambda_i-1/31500','n_p^2-(5.319725+(4.753469e-7)*297.9100+(0.09147285+(3.310965e-8)*297.9100)/(1064^2-0.3165008^2)+(100.2028+(2.760513e-5)*297.9100)/(1064^2-11.73639^2)-(1.497046e-2)*1064^2)','n_s^2-(5.319725+(4.753469e-7)*297.9100+(0.09147285+(3.310965e-8)*297.9100)/(lambda_s^2-0.3165008^2)+(100.2028+(2.760513e-5)*297.9100)/(lambda_s^2-11.73639^2)-(1.497046e-2)*lambda_s^2)','n_i^2-(5.319725+(4.753469e-7)*297.9100+(0.09147285+(3.310965e-8)*297.9100)/(lambda_i^2-0.3165008^2)+(100.2028+(2.760513e-5)*297.9100)/(lambda_i^2-11.73639^2)-(1.497046e-2)*lambda_i^2)')

连成一句,然后解是有72组
A.lambda_i是一个72维向量
即A.lambda_i(1),A.lambda_s(1),...构成一组解
把1换成2又是另一组解
运行了大概5-10分钟。
不明白可追问