SlideShare ist ein Scribd-Unternehmen logo
1 von 11
*It is a high-level language for numerical computation, visualization and application
development.
*It also provides an interactive environment for iterative exploration, design and
problem solving.
•It provides vast library of mathematical functions for linear algebra, statistics,
Fourier analysis, filtering, optimization, numerical integration and solving ordinary
differential equations.
*It provides built-in graphics for visualizing data and tools for creating custom plots.
*MATLAB's programming interface gives development tools for improving code
quality, maintainability, and maximizing performance.
*It provides tools for building applications with custom graphical interfaces.
*It provides functions for integrating MATLAB based algorithms with external
applications and languages such as C, Java, .NET and Microsoft Excel.
MATLAB
•Plotting in 3D and 3D data visualization is where Matlab’s power really
becomes apparent!
•Matlab defines a number of different kinds of 3D plots but you will
probably find 3 or 4 to be the most useful:
•x,y,z 3D line plot: plot3( )
•mesh plot: mesh( )
•surface plot: surf( )
•contour plot: contour( )
•combo surface/mesh with contour: surfc( )
•The surface plotting can also be applied to create realistic 3D objects by
defining and plotting their exterior surfaces!
•It is often desirable to plot functions of the form: z=f(x,y)
•for each (x,y), we can compute a value for z
•this defines a surface in 3D space
•If we can define (x,y) at regular intervals, Matlab provides powerful ways to
plot the resulting function as a mesh or surface in 3D
•The (x,y) values stored in arrays will define a grid of mesh points through
which the surface will be created.
•3D plotting introduces several key concepts:
•Meshes versus Surfaces
•Hidden line removal
•Pedestals and contours
•Color maps and pseudo-coloring
•Viewpoints and camera control (advanced!)
•Shading and lighting (advanced)
Create a grid of x and y points
points = linspace(-2, 2, 40);
Y, Z) X, Y] = meshgrid(points, points);
% Define the function
Z = f(X,Y) Z = 2./exp((X-.5).^2+Y.^2)-2./exp((X+.5).^2+Y.^2);
% Create the surface plot using the surf command figure surf(X, Y,
Z)
% Create a grid of x and y data
y = -10:0.5:10;
x = -10:0.5:10;
[X, Y] = meshgrid(x, y);
% Create the function values for Z = f(X,Y)
Z = sin(sqrt(X.^2+Y.^2)) ./ sqrt(X.^2+Y.^2);
% Create a surface contour plor using the surfc function
figure
surfc(X, Y, Z)
% Adjust the view angle
view(-38, 18)
% Add title and axis labels
title('Normal Response')
xlabel('x')
ylabel('y')
zlabel('z')
•Uses of 3-D plots in MATLAB
•Well MATLAB is widely used as a computational tool in science and
engineering encompassing the fields of physics, chemistry, math and all
engineering streams. It is used in a range of applications including:
• signal processing and Communications
• image and video Processing
• control systems
• test and measurement
• computational finance
• computational biology
K10765 Matlab 3D Mesh Plots

Weitere ähnliche Inhalte

Was ist angesagt?

2.1 Functions and Their Graphs
2.1 Functions and Their Graphs2.1 Functions and Their Graphs
2.1 Functions and Their Graphs
hisema01
 
Introduction to matlab
Introduction to matlabIntroduction to matlab
Introduction to matlab
Santosh V
 
Basics of matlab
Basics of matlabBasics of matlab
Basics of matlab
Anil Maurya
 
Lesson02 Vectors And Matrices Slides
Lesson02   Vectors And Matrices SlidesLesson02   Vectors And Matrices Slides
Lesson02 Vectors And Matrices Slides
Matthew Leingang
 
Variables in matlab
Variables in matlabVariables in matlab
Variables in matlab
TUOS-Sam
 
Functions for Grade 10
Functions for Grade 10Functions for Grade 10
Functions for Grade 10
Boipelo Radebe
 

Was ist angesagt? (20)

2.1 Functions and Their Graphs
2.1 Functions and Their Graphs2.1 Functions and Their Graphs
2.1 Functions and Their Graphs
 
Beta gamma functions
Beta gamma functionsBeta gamma functions
Beta gamma functions
 
Introduction to matlab
Introduction to matlabIntroduction to matlab
Introduction to matlab
 
02 linear algebra
02 linear algebra02 linear algebra
02 linear algebra
 
Introduction to MATLAB
Introduction to MATLABIntroduction to MATLAB
Introduction to MATLAB
 
System Of Linear Equations
System Of Linear EquationsSystem Of Linear Equations
System Of Linear Equations
 
Determinants
DeterminantsDeterminants
Determinants
 
Matlab-free course by Mohd Esa
Matlab-free course by Mohd EsaMatlab-free course by Mohd Esa
Matlab-free course by Mohd Esa
 
Importance of matlab
Importance of matlabImportance of matlab
Importance of matlab
 
Basics of matlab
Basics of matlabBasics of matlab
Basics of matlab
 
Matlab ch1 (3)
Matlab ch1 (3)Matlab ch1 (3)
Matlab ch1 (3)
 
Lesson02 Vectors And Matrices Slides
Lesson02   Vectors And Matrices SlidesLesson02   Vectors And Matrices Slides
Lesson02 Vectors And Matrices Slides
 
Introduction to MATLAB
Introduction to MATLABIntroduction to MATLAB
Introduction to MATLAB
 
Matlab for beginners, Introduction, signal processing
Matlab for beginners, Introduction, signal processingMatlab for beginners, Introduction, signal processing
Matlab for beginners, Introduction, signal processing
 
Introduction to Matlab for Engineering Students.pdf
Introduction to Matlab for Engineering Students.pdfIntroduction to Matlab for Engineering Students.pdf
Introduction to Matlab for Engineering Students.pdf
 
Matrices
MatricesMatrices
Matrices
 
Variables in matlab
Variables in matlabVariables in matlab
Variables in matlab
 
Matrices and System of Linear Equations ppt
Matrices and System of Linear Equations pptMatrices and System of Linear Equations ppt
Matrices and System of Linear Equations ppt
 
Functions for Grade 10
Functions for Grade 10Functions for Grade 10
Functions for Grade 10
 
Gradient , Directional Derivative , Divergence , Curl
Gradient , Directional Derivative , Divergence , Curl Gradient , Directional Derivative , Divergence , Curl
Gradient , Directional Derivative , Divergence , Curl
 

Ähnlich wie K10765 Matlab 3D Mesh Plots

Programming in python
Programming in pythonProgramming in python
Programming in python
Ivan Rojas
 
Mit6 094 iap10_lec05
Mit6 094 iap10_lec05Mit6 094 iap10_lec05
Mit6 094 iap10_lec05
Tribhuwan Pant
 

Ähnlich wie K10765 Matlab 3D Mesh Plots (20)

K10947 Vikas ct
K10947 Vikas ctK10947 Vikas ct
K10947 Vikas ct
 
MATLAB Programming
MATLAB Programming MATLAB Programming
MATLAB Programming
 
Matlab workshop
Matlab workshopMatlab workshop
Matlab workshop
 
Summer training matlab
Summer training matlab Summer training matlab
Summer training matlab
 
Summer training matlab
Summer training matlab Summer training matlab
Summer training matlab
 
Matlab_Harshal.pptx
Matlab_Harshal.pptxMatlab_Harshal.pptx
Matlab_Harshal.pptx
 
Lecture 02 visualization and programming
Lecture 02   visualization and programmingLecture 02   visualization and programming
Lecture 02 visualization and programming
 
Programming in python
Programming in pythonProgramming in python
Programming in python
 
Introduction to Matlab.ppt
Introduction to Matlab.pptIntroduction to Matlab.ppt
Introduction to Matlab.ppt
 
Lec2
Lec2Lec2
Lec2
 
WT-4065, Superconductor: GPU Web Programming for Big Data Visualization, by ...
WT-4065, Superconductor: GPU Web Programming for Big Data Visualization, by  ...WT-4065, Superconductor: GPU Web Programming for Big Data Visualization, by  ...
WT-4065, Superconductor: GPU Web Programming for Big Data Visualization, by ...
 
Matlab practical ---1.pdf
Matlab practical ---1.pdfMatlab practical ---1.pdf
Matlab practical ---1.pdf
 
Matlab introduction
Matlab introductionMatlab introduction
Matlab introduction
 
R programmingmilano
R programmingmilanoR programmingmilano
R programmingmilano
 
Mit6 094 iap10_lec05
Mit6 094 iap10_lec05Mit6 094 iap10_lec05
Mit6 094 iap10_lec05
 
software engineering modules iii & iv.pptx
software engineering  modules iii & iv.pptxsoftware engineering  modules iii & iv.pptx
software engineering modules iii & iv.pptx
 
Dsp file
Dsp fileDsp file
Dsp file
 
Beginning direct3d gameprogramming01_thehistoryofdirect3dgraphics_20160407_ji...
Beginning direct3d gameprogramming01_thehistoryofdirect3dgraphics_20160407_ji...Beginning direct3d gameprogramming01_thehistoryofdirect3dgraphics_20160407_ji...
Beginning direct3d gameprogramming01_thehistoryofdirect3dgraphics_20160407_ji...
 
Don't Call It a Comeback: Attribute Grammars for Big Data Visualization
Don't Call It a Comeback: Attribute Grammars for Big Data VisualizationDon't Call It a Comeback: Attribute Grammars for Big Data Visualization
Don't Call It a Comeback: Attribute Grammars for Big Data Visualization
 
Introduction to MATLAB
Introduction to MATLABIntroduction to MATLAB
Introduction to MATLAB
 

Mehr von Shraddhey Bhandari (14)

K11023 rohan patel rac
K11023 rohan patel racK11023 rohan patel rac
K11023 rohan patel rac
 
K11023 rohan patel opc
K11023 rohan patel opcK11023 rohan patel opc
K11023 rohan patel opc
 
k10854 Twvss
k10854 Twvssk10854 Twvss
k10854 Twvss
 
k10854 Just in time management in restaurant
k10854 Just in time management in restaurantk10854 Just in time management in restaurant
k10854 Just in time management in restaurant
 
K11023 rohan patel digital fuel level indicator
K11023 rohan patel digital fuel level indicatorK11023 rohan patel digital fuel level indicator
K11023 rohan patel digital fuel level indicator
 
K10854 Experimental evaluation of cascade refrigeration plant
K10854 Experimental evaluation of cascade refrigeration plantK10854 Experimental evaluation of cascade refrigeration plant
K10854 Experimental evaluation of cascade refrigeration plant
 
K10765 Opc
K10765 OpcK10765 Opc
K10765 Opc
 
k10765 Ic
k10765 Ick10765 Ic
k10765 Ic
 
K10947 Vikas rac
K10947 Vikas racK10947 Vikas rac
K10947 Vikas rac
 
k10947 Ppt ic
k10947 Ppt ick10947 Ppt ic
k10947 Ppt ic
 
K10947 Vikas opc
K10947 Vikas opcK10947 Vikas opc
K10947 Vikas opc
 
K10765 Operation Planning Control
K10765 Operation Planning ControlK10765 Operation Planning Control
K10765 Operation Planning Control
 
K10854 Adaptive simulation
 K10854 Adaptive simulation K10854 Adaptive simulation
K10854 Adaptive simulation
 
Intermittent Vapour Absorption Cycle
Intermittent Vapour Absorption CycleIntermittent Vapour Absorption Cycle
Intermittent Vapour Absorption Cycle
 

KĂźrzlich hochgeladen

Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
dollysharma2066
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
sivaprakash250
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Christo Ananth
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
rknatarajan
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Dr.Costas Sachpazis
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
ankushspencer015
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 

KĂźrzlich hochgeladen (20)

BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduits
 
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 

K10765 Matlab 3D Mesh Plots

  • 1.
  • 2. *It is a high-level language for numerical computation, visualization and application development. *It also provides an interactive environment for iterative exploration, design and problem solving. •It provides vast library of mathematical functions for linear algebra, statistics, Fourier analysis, filtering, optimization, numerical integration and solving ordinary differential equations. *It provides built-in graphics for visualizing data and tools for creating custom plots. *MATLAB's programming interface gives development tools for improving code quality, maintainability, and maximizing performance. *It provides tools for building applications with custom graphical interfaces. *It provides functions for integrating MATLAB based algorithms with external applications and languages such as C, Java, .NET and Microsoft Excel. MATLAB
  • 3. •Plotting in 3D and 3D data visualization is where Matlab’s power really becomes apparent! •Matlab defines a number of different kinds of 3D plots but you will probably find 3 or 4 to be the most useful: •x,y,z 3D line plot: plot3( ) •mesh plot: mesh( ) •surface plot: surf( ) •contour plot: contour( ) •combo surface/mesh with contour: surfc( ) •The surface plotting can also be applied to create realistic 3D objects by defining and plotting their exterior surfaces!
  • 4. •It is often desirable to plot functions of the form: z=f(x,y) •for each (x,y), we can compute a value for z •this defines a surface in 3D space •If we can define (x,y) at regular intervals, Matlab provides powerful ways to plot the resulting function as a mesh or surface in 3D •The (x,y) values stored in arrays will define a grid of mesh points through which the surface will be created.
  • 5. •3D plotting introduces several key concepts: •Meshes versus Surfaces •Hidden line removal •Pedestals and contours •Color maps and pseudo-coloring •Viewpoints and camera control (advanced!) •Shading and lighting (advanced)
  • 6. Create a grid of x and y points points = linspace(-2, 2, 40); Y, Z) X, Y] = meshgrid(points, points); % Define the function Z = f(X,Y) Z = 2./exp((X-.5).^2+Y.^2)-2./exp((X+.5).^2+Y.^2); % Create the surface plot using the surf command figure surf(X, Y, Z)
  • 7.
  • 8. % Create a grid of x and y data y = -10:0.5:10; x = -10:0.5:10; [X, Y] = meshgrid(x, y); % Create the function values for Z = f(X,Y) Z = sin(sqrt(X.^2+Y.^2)) ./ sqrt(X.^2+Y.^2); % Create a surface contour plor using the surfc function figure surfc(X, Y, Z) % Adjust the view angle view(-38, 18) % Add title and axis labels title('Normal Response') xlabel('x') ylabel('y') zlabel('z')
  • 9.
  • 10. •Uses of 3-D plots in MATLAB •Well MATLAB is widely used as a computational tool in science and engineering encompassing the fields of physics, chemistry, math and all engineering streams. It is used in a range of applications including: • signal processing and Communications • image and video Processing • control systems • test and measurement • computational finance • computational biology