Can i simulate cloud environment using MATLAB?

9 visualizaciones (últimos 30 días)
Arshad Ali
Arshad Ali el 21 de Feb. de 2018
Comentada: Walter Roberson el 25 de En. de 2025
I want to simulate cloud environment using MATLAB and implement some scheduling algorithms.

Respuesta aceptada

Walter Roberson
Walter Roberson el 21 de Feb. de 2018
Yes, that is possible. MATLAB is a general purpose programming language that can compute any finite deterministic algorithm given enough time and memory.
MATLAB does not provide any special tools for the purpose of simulating cloud computing.
You might want to look at Simscape for event simulation.
  3 comentarios
Walter Roberson
Walter Roberson el 22 de Feb. de 2018
I do not have any code for that purpose. A small number of people have asked about cloud simulation but I have not seen any code for it.
One thing you need to figure out is how cloud computing is different from distributed computing.
Lavanya Suja T
Lavanya Suja T el 1 de Jun. de 2021
Try CloudSim3.0.3 for Scheduling algorithms
Report Generation can be done in MATLAB's Plots

Iniciar sesión para comentar.

Más respuestas (1)

rashi
rashi el 25 de En. de 2025
Editada: Walter Roberson el 25 de En. de 2025
% MATLAB Simulation for Temperature Variation with Cloud Influence
% Define parameters
time_steps = 100; % Number of time steps (e.g., hours)
initial_temp = 25; % Initial temperature in Celsius
cloud_cover_factor = 0.5; % Factor influencing cloud cover (0: clear, 1: overcast)
temp_variation_range = [-5, 5]; % Temperature fluctuation range in Celsius
% Generate random cloud cover values between 0 (clear) and 1 (overcast)
cloud_cover = rand(1, time_steps);
% Pre-allocate array for temperature values
temperature = zeros(1, time_steps);
temperature(1) = initial_temp;
% Algorithm to simulate temperature variation
for t = 2:time_steps
% Define temperature fluctuation range based on cloud cover
fluctuation_range = temp_variation_range * (1 - cloud_cover(t-1)); % More cloud = smaller fluctuation
% Simulate temperature variation
temperature(t) = temperature(t-1) + rand * (fluctuation_range(2) - fluctuation_range(1)) + fluctuation_range(1);
% Temperature should stay within reasonable bounds
temperature(t) = max(min(temperature(t), 40), -10); % Temperature range between -10°C and 40°C
end
% Plot the results
figure;
subplot(2, 1, 1);
plot(1:time_steps, temperature, '-o', 'LineWidth', 2);
title('Temperature Variation with Time');
xlabel('Time (hours)');
ylabel('Temperature (°C)');
grid on;
subplot(2, 1, 2);
plot(1:time_steps, cloud_cover, '-o', 'LineWidth', 2);
title('Cloud Cover Over Time');
xlabel('Time (hours)');
ylabel('Cloud Cover Factor');
grid on;
  1 comentario
Walter Roberson
Walter Roberson el 25 de En. de 2025
Unfortunately, a different meaning of "cloud" was intended in the question. The question was asking about "Cloud Computing" -- computing done by servers.

Iniciar sesión para comentar.

Categorías

Más información sobre Point Cloud Processing en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by