✅作者简介:热爱科研的Matlab仿真开发者,修心和技术同步精进,代码获取、论文复现及科研仿真合作可私信。
🍎个人主页:Matlab科研工作室
🍊个人信条:格物致知。
更多Matlab完整代码及仿真定制内容点击👇
🔥 内容介绍
基于matlab的新年快乐
📣 代码
function Happy_New_Year_2024()
fig = figure;
set(fig, 'Color', [0 0 0]);
hold on;
axis off;
axis equal;
axis([0 75 0 75]);
set(gca, 'color', [0 0 0]); % Set background to black
% Number of fireworks
n_fireworks = 40;
% Create fireworks
for i = 1:n_fireworks
% Randomly choose the center of the firework
center_x = rand() * 75;
center_y = rand() * 75 + 50;
% Randomly choose the number of particles
n_particles = randi([100, 100]);
% Generate particles
for j = 1:n_particles
% Random angle for the particle
angle = rand() * 2 * pi;
% Random length for the particle
length = rand() * 5 + 5;
% Calculate end point of the particle
end_x = center_x + length * cos(angle);
end_y = center_y + length * sin(angle);
% Random color for the particle
color = rand(1, 3);
% Plot the particle
plot([center_x, end_x], [center_y, end_y], 'Color', color, 'LineWidth', rand()*4);
end
% Pause a bit before the next firework
pause(0.1);
end
% Add multicolor text at the bottom
message = 'Happy New Year 2024: PIRC';
words = strsplit(message, ' ');
x_start = 10;
y_position = 30;
for w = 1:numel(words)
text_color = rand(1, 3);
text(x_start, y_position, words{w}, 'Color', text_color, 'FontSize', 18, 'FontWeight', 'bold');
x_start = x_start + numel(words{w}) *3.5;
end
hold off;
end
⛳️ 运行结果
🔗 参考文献
🎈 部分理论引用网络文献,若有侵权联系博主删除
🎁 关注我领取海量matlab电子书和数学建模资料
👇 私信完整代码和数据获取及论文数模仿真定制
1 各类智能优化算法改进及应用
生产调度、经济调度、装配线调度、充电优化、车间调度、发车优化、水库调度、三维装箱、物流选址、货位优化、公交排班优化、充电桩布局优化、车间布局优化、集装箱船配载优化、水泵组合优化、解医疗资源分配优化、设施布局优化、可视域基站和无人机选址优化、背包问题、 风电场布局、时隙分配优化、 最佳分布式发电单元分配、多阶段管道维修、 工厂-中心-需求点三级选址问题、 应急生活物质配送中心选址、 基站选址、 道路灯柱布置、 枢纽节点部署、 输电线路台风监测装置、 集装箱船配载优化、 机组优化、 投资优化组合、云服务器组合优化、 天线线性阵列分布优化
2 机器学习和深度学习方面
2.1 bp时序、回归预测和分类
2.2 ENS声神经网络时序、回归预测和分类
2.3 SVM/CNN-SVM/LSSVM/RVM支持向量机系列时序、回归预测和分类
2.4 CNN/TCN卷积神经网络系列时序、回归预测和分类
2.5 ELM/KELM/RELM/DELM极限学习机系列时序、回归预测和分类
2.6 GRU/Bi-GRU/CNN-GRU/CNN-BiGRU门控神经网络时序、回归预测和分类
2.7 ELMAN递归神经网络时序、回归\预测和分类
2.8 LSTM/BiLSTM/CNN-LSTM/CNN-BiLSTM/长短记忆神经网络系列时序、回归预测和分类
2.9 RBF径向基神经网络时序、回归预测和分类