m =1;Ts_Psi = 1; Psi_Degrees = 60;Psi_Radians = deg2rad(Psi_Degrees);Phi_Degrees = 60;Phi_Radians = deg2rad(Phi_Degrees);n = 1.5;G_Psi = (n^2)/(sin(Psi_Radians)^2);k_Dash = ((m+1)*0.01/(2*pi)) * Ts_Psi * G_Psi;k = ((m+1)*0.01/(2*pi)) * Ts_Psi * G_Psi * (cos(Phi_Radians)^m) * cos(Psi_Radians);Pt = 4.5;lambda = 0.01;h =10;syms x;syms w;D = 1:1:10;f =@(x,w) (1 - exp((1j*w*k_Dash*Pt.*(x.^2))./((x.^2+h^2).^2)));cf=@(w)exp(-lambda*(integral(@(x)f(x,w),0,Inf)));int_temp = @(w,x)((1./w).*imag(cf(w).*exp(-1j.*w.*x)));fi = @(x)( (1/2) - (1/pi).*integral(@(w)int_temp(w,x),0,Inf));fi(0.1)
MATLAB: Am i getting the error “Matrix dimensions must agree” here
MATLABmatlab functionmatrix manipulation
Best Answer