check out a matlab code method
Hello everyone, I’m deeply sorry to ask this question, because i could’nt resolve it . I’m using R2024a matlab version, and I wanna know how to check a matlab code i mean ( array, matrix,…) . In this part, I would know how to get those errors messages?
if Bearing_Type == 7 % fluid film bearings – based on short width bearing theory
if ncol_bearing < 7, disp(‘>>>> Error – too few columns in bearing definition matrix for bearing type 7’), end
if Rotor_Spd == 0, disp(‘>>>> Error – bearing type 7 – fluid bearing model undefined at zero speed’), end
F = Bearing_Def(i,3); % static load (N) colonne 3,The static bearing’s force needs to be calculated.
D = Bearing_Def(i,4); % bearing diameter (m) colonne 4
L = Bearing_Def(i,5); % bearing length (m) colonne 5
c = Bearing_Def(i,6); % bearing radial clearance (m) colonne 6
eta = Bearing_Def(i,7); % oil viscosity (Ns/m^2) colonne 7
model.bearing = [7 1 Bearing1_diam Bearing1_clear Bearing1_wid Lubricating_oil_number eta; …
7 12 Bearing2_diam Bearing2_clear Bearing2_wid Lubricating_oil_number eta];Hello everyone, I’m deeply sorry to ask this question, because i could’nt resolve it . I’m using R2024a matlab version, and I wanna know how to check a matlab code i mean ( array, matrix,…) . In this part, I would know how to get those errors messages?
if Bearing_Type == 7 % fluid film bearings – based on short width bearing theory
if ncol_bearing < 7, disp(‘>>>> Error – too few columns in bearing definition matrix for bearing type 7’), end
if Rotor_Spd == 0, disp(‘>>>> Error – bearing type 7 – fluid bearing model undefined at zero speed’), end
F = Bearing_Def(i,3); % static load (N) colonne 3,The static bearing’s force needs to be calculated.
D = Bearing_Def(i,4); % bearing diameter (m) colonne 4
L = Bearing_Def(i,5); % bearing length (m) colonne 5
c = Bearing_Def(i,6); % bearing radial clearance (m) colonne 6
eta = Bearing_Def(i,7); % oil viscosity (Ns/m^2) colonne 7
model.bearing = [7 1 Bearing1_diam Bearing1_clear Bearing1_wid Lubricating_oil_number eta; …
7 12 Bearing2_diam Bearing2_clear Bearing2_wid Lubricating_oil_number eta]; Hello everyone, I’m deeply sorry to ask this question, because i could’nt resolve it . I’m using R2024a matlab version, and I wanna know how to check a matlab code i mean ( array, matrix,…) . In this part, I would know how to get those errors messages?
if Bearing_Type == 7 % fluid film bearings – based on short width bearing theory
if ncol_bearing < 7, disp(‘>>>> Error – too few columns in bearing definition matrix for bearing type 7’), end
if Rotor_Spd == 0, disp(‘>>>> Error – bearing type 7 – fluid bearing model undefined at zero speed’), end
F = Bearing_Def(i,3); % static load (N) colonne 3,The static bearing’s force needs to be calculated.
D = Bearing_Def(i,4); % bearing diameter (m) colonne 4
L = Bearing_Def(i,5); % bearing length (m) colonne 5
c = Bearing_Def(i,6); % bearing radial clearance (m) colonne 6
eta = Bearing_Def(i,7); % oil viscosity (Ns/m^2) colonne 7
model.bearing = [7 1 Bearing1_diam Bearing1_clear Bearing1_wid Lubricating_oil_number eta; …
7 12 Bearing2_diam Bearing2_clear Bearing2_wid Lubricating_oil_number eta]; check matlab code, matlab compiler MATLAB Answers — New Questions









