Please enable JavaScript.
Coggle requires JavaScript to display documents.
Lesson 4 - Coggle Diagram
Lesson 4
-
xSquare = [-squareSide/2, squareSide/2, squareSide/2, -squareSide/2, -squareSide/2];
ySquare = [bottomCircleRadius, bottomCircleRadius, bottomCircleRadius + squareSide, bottomCircleRadius + squareSide, bottomCircleRadius];
plot(xSquare, ySquare, 'g', 'LineWidth', 2);
-
-
-
-
-
plot(xTop, yTop, 'r', 'LineWidth', 2);
% Plot bottom circle
-
theta = linspace(0, 2*pi, 100);
-
-
plot(xBottom, yBottom, 'b', 'LineWidth', 2);
-
% Define circle diameters and square side
bottomCircleDiameter = 40;
topCircleDiameter = 20;
squareSide = 5;
-
-
% Add legend
legend('Bottom Circle', 'Top Circle', 'Square');
-
-
-