Final
Final
clc;
catch ME
% Display any errors that occurred
disp('Error occurred:');
disp(ME.message);
end
% Loop through each epsi with fixed delta_r, delta_a, and theta
for k = 1:length(epsi)
try
% Generate equations and variables
[fs, xs] = generate_equations(D, B, alpha, Ko1, Ki1, fi, gama_o1, Ri,
epsi(k), gama_i1, Mo, Mi, Fc1, fo, delta_a_fixed, delta_r_fixed, theta_fixed);
% Initial guess
x = repmat(0.1, [numel(xs), 1]); % Initial guess for all variables
catch ME
% Display any errors that occurred
disp(['Error occurred for epsi = ', num2str(epsi(k)), ':']);
disp(ME.message);
end
end