Professional Documents
Culture Documents
Código em MATLAB 5
Código em MATLAB 5
Código em MATLAB 5
Situation
% Load ratios
num_simulations = 100000;
% Define cases
As = cases(case_num, 1);
s = cases(case_num, 3);
d = h - d_prime;
% Get PL and LL values for the current case and load ratio
num_failures = 0;
if fire_type == 1
Tr = standard_fire_temperatures(time_idx);
else
Tr = parametrized_fire_temperatures(time_idx);
end
fyTr = random_fy * r;
nw = 1 - 0.0616 * t^-0.88;
num_failures = num_failures + 1;
end
end
end
end
end
% Plot reliability indices and failure probabilities for the current case
figure;
subplot(2, 1, 1);
hold on;
end
ylabel('Reliability Index');
grid on;
hold off;
subplot(2, 1, 2);
hold on;
end
ylabel('Failure Probability');
grid on;
hold off;
end
close(f);