- /
 - 
        
Excited about matlab
 
        on 23 Nov 2023
        
        
 
    - 6
 - 19
 - 0
 - 0
 - 703
 
drawframe(1);
 Write your drawframe function below
function drawframe(f)
hold on
rectangle('Position', [0, 0, 0.9, 2], 'FaceColor', [0.6, 0.8, 1]); 
rectangle('Position', [0.3, 0.5, 0.2, 0.8], 'FaceColor', [0, 0, 0]); 
rectangle('Position', [0.3, 1.35, 0.2, 0.2], 'FaceColor', [0, 0, 0]); 
line([0.2, 0.4], [1.5, 1], 'LineWidth', 3, 'Color', [0, 0, 0]); 
line([0.5, 0.6], [1.25, 1.45], 'LineWidth', 3, 'Color', [0, 0, 0]); 
line([0.35, 0.35], [0, 1], 'LineWidth', 3, 'Color', [0, 0, 0]); 
line([0.45, 0.45], [0, 1], 'LineWidth', 3, 'Color', [0, 0, 0]); 
rectangle('Position', [0.65, 1.3, 0.2, 0.2], 'FaceColor', [0.8, 0.8, 0.8]); 
rectangle('Position', [0.64, 1.3, 0.22, 0.02], 'FaceColor', [0, 0, 0]); 
text(0.68, 1.37, 'MATLAB', 'Color', [f/48, f/48, f/48], 'FontSize', 5, 'FontWeight', 'bold');
axis off
end


