Read the example below carefully, understand how scatter plots are generated. And answer the following two questions. rng(1); % Generate random data for Cluster 1 x1 = randn (100, 1); y12randn(100, 1); z1 3 randn(100, 1); s1 = 20 + 80 * rand(100, 1); % Random points along X % Spread along Y-axis % Spread along Z-axis % Random marker sizes for Cluster 1 % Shifted along X-axis % Generate random data for Cluster 2 x26+randn(100, 1); y262randn (100, 1); randn(100, 1); z2 s2 = 20 + 80 * rand(100, 1); % Shifted and spread along Y-axis % Standard normal distribution along Z % Random marker sizes for Cluster 2 % Generate random data for Cluster 3 x3 -6 + 1.5 * randn(100, 1); y3-61.5 randn (100, 1); z3-32 s3 20+80 randn(100, 1); rand(100, 1); % Create the 3D scatter plot figure; % Shifted and spread along X-axis % Shifted and spread along Y-axis % Shifted and spread along Z-axis % Random marker sizes for Cluster 3 % Plot Cluster 1 with semi-transparent blue circles scatter3(x1, y1, z1, s1, 'MarkerEdgeColor', 'b', 'MarkerFaceColor', 'b', 'Marker FaceAlpha', 0.5); hold on; % Plot Cluster 2 with semi-transparent red diamonds scatter3(x2, y2, 22, s2, 'd', 'MarkerEdgeColor', 'g', 'MarkerFaceColor', 'g', 'MarkerFaceAlpha', 0.5); % Plot Cluster 3 with semi-transparent green squares scatter3(x3, y3, z3, s3, 's', 'MarkerEdgeColor', 'r', 'MarkerFaceColor', 'r', 'MarkerFaceAlpha', 0.5); % Customize the plot title('3D Scatter Plot of Three Clusters'); xlabel('X-axis'); ylabel('Y-axis'); zlabel('Z-axis'); legend('Cluster 1', 'Cluster 2', 'Cluster 3'); grid on; hold off; Question 3. What type of data format is suitable for 3d scatter plotting? Question 4. Please provide two engineering examples that 3d scatter plots are most appropriate for. Please include rationales for your choice.
Read the example below carefully, understand how scatter plots are generated. And answer the following two questions. rng(1); % Generate random data for Cluster 1 x1 = randn (100, 1); y12randn(100, 1); z1 3 randn(100, 1); s1 = 20 + 80 * rand(100, 1); % Random points along X % Spread along Y-axis % Spread along Z-axis % Random marker sizes for Cluster 1 % Shifted along X-axis % Generate random data for Cluster 2 x26+randn(100, 1); y262randn (100, 1); randn(100, 1); z2 s2 = 20 + 80 * rand(100, 1); % Shifted and spread along Y-axis % Standard normal distribution along Z % Random marker sizes for Cluster 2 % Generate random data for Cluster 3 x3 -6 + 1.5 * randn(100, 1); y3-61.5 randn (100, 1); z3-32 s3 20+80 randn(100, 1); rand(100, 1); % Create the 3D scatter plot figure; % Shifted and spread along X-axis % Shifted and spread along Y-axis % Shifted and spread along Z-axis % Random marker sizes for Cluster 3 % Plot Cluster 1 with semi-transparent blue circles scatter3(x1, y1, z1, s1, 'MarkerEdgeColor', 'b', 'MarkerFaceColor', 'b', 'Marker FaceAlpha', 0.5); hold on; % Plot Cluster 2 with semi-transparent red diamonds scatter3(x2, y2, 22, s2, 'd', 'MarkerEdgeColor', 'g', 'MarkerFaceColor', 'g', 'MarkerFaceAlpha', 0.5); % Plot Cluster 3 with semi-transparent green squares scatter3(x3, y3, z3, s3, 's', 'MarkerEdgeColor', 'r', 'MarkerFaceColor', 'r', 'MarkerFaceAlpha', 0.5); % Customize the plot title('3D Scatter Plot of Three Clusters'); xlabel('X-axis'); ylabel('Y-axis'); zlabel('Z-axis'); legend('Cluster 1', 'Cluster 2', 'Cluster 3'); grid on; hold off; Question 3. What type of data format is suitable for 3d scatter plotting? Question 4. Please provide two engineering examples that 3d scatter plots are most appropriate for. Please include rationales for your choice.
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
Answer the question using matlab and show your steps & work
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps
Recommended textbooks for you
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education