Download as pdf or txt
Download as pdf or txt
You are on page 1of 6

UNIVERSIDAD AUTÓNOMA DE NUEVO LEÓN

FACULTAD DE INGENIERÍA MECÁNICA Y ELÉCTRICA

PHASE 1
ASSIGNMENT 1

Docente: Dr. MANUEL MUNGUIA MACARIO

MATRICULA NOMBRE CARRERA

● 2132064 JESÚS ANTONIO PERALTA ACUÑA IMC

MATLAB PROGRAMMING
An Overview of MATLAB and its Essential Functions

MATLAB, developed by MathWorks, is a high-level programming language and


interactive environment that allows users to perform a wide range of numerical and
symbolic computations, create complex algorithms, and visualize data. It finds
applications in engineering, physics, mathematics, finance, biology, and more. This
report explores MATLAB's main uses and discusses the functions present in its main
window.

Main Uses of MATLAB:

Numerical Computing: MATLAB is renowned for its robust numerical computing


capabilities. It provides a comprehensive set of functions for matrix operations, linear
algebra, optimization, and solving complex equations.

Data Analysis and Visualization: Researchers and analysts use MATLAB to process,
analyze, and visualize data. Its extensive plotting and graphing tools enable users to
create customizable visual representations of data, aiding in better understanding and
interpretation.

Algorithm Development: MATLAB supports the creation and testing of algorithms


for various applications, such as image and signal processing, machine learning, and
control systems.

Modeling and Simulation: Engineers use MATLAB to build mathematical models


and simulate dynamic systems. This is particularly useful in designing and testing
complex systems before physical implementation.

Application Development: MATLAB allows users to develop standalone


applications and user interfaces using its App Designer tool, making it easier to share
and deploy custom solutions.

Symbolic Computation: MATLAB's Symbolic Math Toolbox enables symbolic


manipulation of mathematical expressions, equations, and variables, making it a
valuable tool for solving analytical problems.

Main Window Components and Functions:


MATLAB's main window is divided into several components, each serving a specific
purpose:

1
Command Window: The command window is the primary interface for entering
commands and executing code. Users can interact with MATLAB by typing
commands and receiving immediate responses.

Current Folder: This window displays the contents of the current working directory.
Users can manage files, folders, and scripts from this interface.

Editor: MATLAB's editor provides a comprehensive environment for creating,


editing, and debugging scripts and functions. It supports syntax highlighting, code
folding, and integration with version control systems.

Workspace: The workspace displays the variables currently in memory along with
their values. Users can examine, manipulate, and clear variables using the workspace.

Command History: MATLAB maintains a history of previously executed commands,


allowing users to recall and reuse commands conveniently.

File Browser: The file browser provides a graphical interface for navigating through
files and folders, simplifying file management tasks.

Plots: MATLAB's plotting capabilities are accessible through various plot types,
including 2D and 3D plots, histograms, scatter plots, and more. Users can customize
plots, add labels, and export figures for publications.

Apps: MATLAB features specialized apps for specific tasks, such as curve fitting,
signal analysis, and image processing. These apps offer interactive interfaces and
streamline complex analyses.

2
Calculate the following exercises using Matlab

11
1. 5 14

8 7
2. 5 3
+3

1.25
3. 9

4. True or False. If y has not been assigned a value, MATLAB will allow you
to define the equation x=y^2 to store in memory for later use.

True. In MATLAB, if a variable y has not been assigned a value, you can still define
equations or expressions that involve y and store them in memory for later use. The
equation x = y^2 can be defined even if y is not assigned a value yet. However, when
you actually try to evaluate or use the value of x in calculations, it will be based on the
value of y at that moment, which may lead to unexpected results if y is not assigned a
value before using x.

3
2
5. If the weight of a cylinder of height h and radius r is given by 𝑉 = π𝑟 /ℎ.
Use MATLAB to find the volume enclosed by a cylinder that is 12 cm high
with a diameter of 4 cm.

6. Use MATLAB to compute the sin of π/3 expressed as a rational number

7. Create a MATLAB m file to display the results of 𝑠𝑖𝑛(π/4), 𝑠𝑖𝑛(π/3),


𝑠𝑖𝑛(π/2) as rational numbers

4
In conclusion, MATLAB is a versatile software tool with a wide range of applications
in fields like engineering, science, and finance. Its main window components, such as
the command window, editor, workspace, and plotting tools, provide users with a
comprehensive environment for data analysis, algorithm development, and
visualization. With its powerful numerical computation capabilities and user-friendly
interface, MATLAB continues to play a crucial role in advancing research and
innovation across various domains.

You might also like