Location via proxy:
[ UP ]
[Report a bug]
[Manage cookies]
No cookies
No scripts
No ads
No referrer
Show this form
Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
22 views
Matlab Commands For Lab
wireless network
Uploaded by
41 Pratiksha Pawar
AI-enhanced title
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save Matlab Commands for lab For Later
Download
Save
Save Matlab Commands for lab For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
22 views
Matlab Commands For Lab
wireless network
Uploaded by
41 Pratiksha Pawar
AI-enhanced title
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save Matlab Commands for lab For Later
Carousel Previous
Carousel Next
Save
Save Matlab Commands for lab For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 6
Search
Fullscreen
AA A-2 INTRODUCTION MATLAB is the powerful tool of modern scientific computations. The complex engineering problems can be solved easily with the help of MATLAB programs, Related and required commands can be drawn from respective MATLAB toolbox. { m-files corresponding to the MATLAB statement (concerned MATLAB consists o! algorithm). There are three types of windows concerned to MATLAB viz. 1. MATLAB command window. 2, MATLAB Editor / Debugger window. 3. MATLAB Figure window. MATLAB command window : This window prompts >>, indicating that L it is ready for execution of MATLAB commands. Results are displayed in command window. The command window can also be used to run small programs. 2. MATLAB Editor / Debugger : Actual program is typed in this window and saved the file with extension of mi.e., chetana.m (MATLAB command abbreviations can not be used to save user files). All comments are written after % (percentage) character and ; (semicolon) is used to end the command. MATLAB Figure window : After execution (Running) of MATLAB program, the computed figure is displayed in MATLAB figure window. EXECUTION PROCEDURE + Open MATLAB command window. + — Click on new m-file (MATLAB editor/debugger is opened with file name untitled) + Type the program. + Comments must precede with % (percentage). * Type (semicolon) at the end of each MATLAB command (optional).A-3 + No ‘end’ statement is required for MATLAB main program (if typed, user gets warning message after running the program). Click on ‘saveas’ and save the file with ‘filename.m’ in ‘work’ environment of MATLAB software. Click on ‘Tool’ and then click on ‘Run’ to execute the program (As per setting ofoptions, user finds an arrow to the data to be inputed if program is correctly typed otherwise error is displayed). Enter the data samples (if not specified in program) in MATLAB command window. Enter all data samples within the SQUARE BRACKETS and a SPACE between each sample. ‘After entering all the input data, the result is displayed in command window or figure window (As per program). Users are advised to follow the execution procedure before proceeding with MATLAB programming. M. computation tim far ATLAB programs are compact, flexible and easy to execute except the e for longer programs. As a author, users are advised to look the ntasy of MATLAB programming. LIST OF MATLAB COMMANDS ‘The following list of MATLAB commands are very useful for signal processing. Use “help” or “lookfor” for more information about commands. Command Description Basic Commands. abs (x) ‘Computes the absolute value of vector x. angle (x) Computes the phase angle of vector x in radians. axis (x) Sets the manual scaling value on plots. break Stops the execution of loops. elf Removes all the objects from current figure. ceil(x) Rounds to the nearest integer value of x. real (x) Takes the real part of each exponents of vector X- imag (2) ‘Takes the imaginary part of each exponents of vector © conj (x) Complex conjugate of each components of x- exp (p) Computes the exponential value. sum (x) Sum of components of vector x.force | log (x) 1ogi0 (x) sqrt (x) disp (x) end error format grid gtext help hold input inv legend length linspace load lookfor max min Nan ones pause pi plot rand randn rem return save size Product of components of vector x. Computes natural logarithm of x Computes the logarithm of x with base 10, Computes the squaroot of x. : Displays the tex or z Terminates the — onthe semen, Displays an error message. Displays the format of display (long or short), Adds or deletes grid lines to or from the current plot. Places the text on figure with the help of mouse, Provides on line help of MATLAB commands. Holds the current graph. Request for the data to be supplied by user. Evaluates inverse of matrix. Inserts a legend on current figure. Calculates the length of vector. Generates linearly spaced vectors. Obtain saved data from the disk. Provides search through all help entries. Determines largest element of vector. Determines smallest element of vector. Not-a-Number. Generates a vector with element value 1. Execution stops temporarily until any key is pressed. Value of 2. Generates 2-D plots. Generates random numbers uniformly, distributed in the interval 0 and 1. Generates random numbers with zero mean and unity variance. ’ Determines the reminder from matrix division. Return to the key board. Saves the variables on the disk. dimension.stem Plots the discrete values of sequence. subplot Breaks the figure window into multiple planes for multiple figure display. title Write the heading on the top of current figure. what Provides the directory listing of files. which Locates the functions and files. who Lists the current variables in the memory. whos Lists the variables in memory, their sizes and nonzero imaginary parts xlabel Write the text below the x axis of plot. ylabel Write the text vertically on y axis of plot. zeros Generates the vector with element zero. Convolution and correlation related commands conv Computes convolution of two sequences. decony Performs the operation of polynomial division. xcorr Computes the correlation between two sequences, DEFT / FFT related commands freqz Computes the complex frequency response of digital transfer function. ats Computes the discrete fourier series. rem Determines the reminder after division. mod Computes the mod value. dft Computes the N-point DFT of sequence x. idft Computes the N-point inverse DFT of x. ovrlpsav Computes the linear convolution of real time sequence by overlap save method, fft Implements radix-2 FFT algorithm. ifft Implements radix-2 inverse FFT algorithm. £f£tshift(x)| Rearrange the output of FFT so that the zero frequency component is at the center of the spectrum. Z-Transform related commands zplane Displays poles and zeros in z plane. roots Computes the roots of z polynomial.———————— a residue Determine the partial fraction of DT tr expressed by ratio of z-polynomial ‘ansfer function residuez Determine the partial fraction of DT transf: expressed by the ratio of 2” polynomial sfer function filter Implements the filter given by difference equati ation. impz Computes the impulse resi : ponse coeffi igi transfer funetion. setents of digital peaen Calculates the zeros, poles and : , gains of function in even transfer apatf Calculates the numerator and denominator coefficients of transfer function. Determines the equivalent second order representation zp2so8 from given higher order pole/zero polynomial. Filter related commands — putter Designs the digitaV/analog Butterworth filters. puttord Selects the minimum order of the digital/analog butterworth transfer function. chebyl Designs the digitaVanalog ‘Type-I Chebyshev filters. cheby2 Designs the digital/analog ‘Type-II Chebyshev filters. chebiord Selects the minimum order of digital/analog Type-1 Chebyshev transfer function. cheb2ord Selects the minimum order of the digitaVanalog Type-2 Chebyshev transfer function. ellip Designs the digital/analog elliptic filter. ellipord Selects the minimum order of digital/analog elliptic transfer function. freqs Computes the complex frequency response of analog transfer function. firl Designs lincar phase FIR filter. fir2 Designs linear phase FIR filter with any magnitude. bilinear This command converts an analog filter with zeros Z, poles (2,P,K,Fs) P and gain Kin to digital filter with sampling frequency Fs Hz. bilinear This command converts an analog filter with numerator (N,D,Fs) polynomial coefficients, denominator polynomial coefficients and sampling frequency Fs.boxcar (M) Generates M point rectangular window. bartiet(m) | Generates M point bartlet window hanning(m) | Generates M point hanning window. hamming (M) Generates M point hamming window. blackman(m)| Generates M point blackman window. kaiser (Mm) Generates M point kaiser window. kaiserord Calculates the filter order. Additional Commands Computes sine function of an array. Determines sine values. Calculates signum function. sine sin sign cos Computes cosine values. Rounds to nearest integer value. Determines reflected (folded) sequence. Computes number of floating point operation. Converts number to string representation. Generates sawtooth wave form. Generates staircase wave form. Computes discrete time wavelet transform. Computes inverse discrete time wavelet transform. Computer’ continuous time wavelet transform. round fliplr flops num2str sawtooth stairs dwt idwt cwr Note: Detailed explanation of each MATLAB command can be obtained by help or lookfor commands.
You might also like
Computational Aids in Aeroservoelastic Analysis Using MATLAB
PDF
No ratings yet
Computational Aids in Aeroservoelastic Analysis Using MATLAB
175 pages
Signal and System Manual
PDF
No ratings yet
Signal and System Manual
119 pages
Solution For DSP Lab
PDF
No ratings yet
Solution For DSP Lab
5 pages
Index: S.No Practical Date Sign
PDF
No ratings yet
Index: S.No Practical Date Sign
32 pages
ME Lab Manual - I Sem
PDF
No ratings yet
ME Lab Manual - I Sem
82 pages
A Brief Introduction To Matlab
PDF
No ratings yet
A Brief Introduction To Matlab
8 pages
DSP Lab Manual
PDF
No ratings yet
DSP Lab Manual
57 pages
Matlab
PDF
No ratings yet
Matlab
3 pages
DSP Lab Manual
PDF
No ratings yet
DSP Lab Manual
22 pages
Introduction To DSP Simulations in MATLAB PDF
PDF
No ratings yet
Introduction To DSP Simulations in MATLAB PDF
36 pages
21eel66_dsp Lab Manual
PDF
No ratings yet
21eel66_dsp Lab Manual
69 pages
Lecture Digital Image Processing 2017: Getting Started
PDF
No ratings yet
Lecture Digital Image Processing 2017: Getting Started
9 pages
Software Toolkit: MATLAB
PDF
No ratings yet
Software Toolkit: MATLAB
15 pages
Lab 2
PDF
No ratings yet
Lab 2
11 pages
Lab 1
PDF
No ratings yet
Lab 1
11 pages
DSP Lab Manual
PDF
No ratings yet
DSP Lab Manual
132 pages
Signal Analysis Using MATLAB
PDF
No ratings yet
Signal Analysis Using MATLAB
8 pages
Matlab Vit
PDF
0% (1)
Matlab Vit
73 pages
Introduction To MATLAB: Stefan Güttel October 15, 2020
PDF
No ratings yet
Introduction To MATLAB: Stefan Güttel October 15, 2020
12 pages
Matlab Commands PDF
PDF
No ratings yet
Matlab Commands PDF
17 pages
DSP_Manual_Updated_v2
PDF
No ratings yet
DSP_Manual_Updated_v2
62 pages
Lab 1
PDF
No ratings yet
Lab 1
18 pages
Ch2b - Starting With MATLAB
PDF
No ratings yet
Ch2b - Starting With MATLAB
14 pages
DSP Lab Manual 2023
PDF
No ratings yet
DSP Lab Manual 2023
85 pages
Matlab PDF
PDF
No ratings yet
Matlab PDF
75 pages
Linear Control System Lab
PDF
100% (1)
Linear Control System Lab
18 pages
Matlab Slides 2up PDF
PDF
No ratings yet
Matlab Slides 2up PDF
9 pages
Experiment 01
PDF
No ratings yet
Experiment 01
10 pages
EE 105: MATLAB As An Engineer's Problem Solving Tool
PDF
No ratings yet
EE 105: MATLAB As An Engineer's Problem Solving Tool
3 pages
Lab Sheet 00 Introduction To MATLAB
PDF
No ratings yet
Lab Sheet 00 Introduction To MATLAB
9 pages
Quick Introduction To Matlab: Basic Data Analysis
PDF
No ratings yet
Quick Introduction To Matlab: Basic Data Analysis
10 pages
FCS - Lab 1
PDF
No ratings yet
FCS - Lab 1
8 pages
DSP Manual 1
PDF
No ratings yet
DSP Manual 1
113 pages
Digital Signal Processing Matlab
PDF
No ratings yet
Digital Signal Processing Matlab
9 pages
Matlab Commands
PDF
No ratings yet
Matlab Commands
6 pages
Lab 02
PDF
No ratings yet
Lab 02
13 pages
Final LAC LAB MANUAL
PDF
No ratings yet
Final LAC LAB MANUAL
32 pages
Matlab
PDF
No ratings yet
Matlab
251 pages
Lab 01
PDF
No ratings yet
Lab 01
12 pages
Matlab Basic Functions Reference
PDF
No ratings yet
Matlab Basic Functions Reference
4 pages
Matlab Basic Functions Reference
PDF
No ratings yet
Matlab Basic Functions Reference
4 pages
DSP Lab Manual 15ecl57 Final - CBCS
PDF
No ratings yet
DSP Lab Manual 15ecl57 Final - CBCS
46 pages
Introduction To Matlab: by Kristian Sandberg, Department of Applied Mathematics, University of Colorado
PDF
No ratings yet
Introduction To Matlab: by Kristian Sandberg, Department of Applied Mathematics, University of Colorado
6 pages
Introduction To: Department of Electronics Engineering
PDF
No ratings yet
Introduction To: Department of Electronics Engineering
64 pages
MATLAB Tutorial: MATLAB Basics & Signal Processing Toolbox
PDF
No ratings yet
MATLAB Tutorial: MATLAB Basics & Signal Processing Toolbox
47 pages
IST Lab Manual
PDF
No ratings yet
IST Lab Manual
38 pages
Matlab Familiarisation
PDF
No ratings yet
Matlab Familiarisation
30 pages
Matlab Tutorial F09
PDF
No ratings yet
Matlab Tutorial F09
10 pages
MATLAB For Engineering Applications
PDF
No ratings yet
MATLAB For Engineering Applications
208 pages
Talha - DSP - GCU - Lab1 - 2
PDF
No ratings yet
Talha - DSP - GCU - Lab1 - 2
18 pages
Matlab Command Functions
PDF
No ratings yet
Matlab Command Functions
17 pages
Lab 01
PDF
No ratings yet
Lab 01
8 pages
Introduction To Matlab& Signals: Defining A Scalar
PDF
No ratings yet
Introduction To Matlab& Signals: Defining A Scalar
10 pages
Related titles
Click to expand Related Titles
Carousel Previous
Carousel Next
Computational Aids in Aeroservoelastic Analysis Using MATLAB
PDF
Computational Aids in Aeroservoelastic Analysis Using MATLAB
Signal and System Manual
PDF
Signal and System Manual
Solution For DSP Lab
PDF
Solution For DSP Lab
Index: S.No Practical Date Sign
PDF
Index: S.No Practical Date Sign
ME Lab Manual - I Sem
PDF
ME Lab Manual - I Sem
A Brief Introduction To Matlab
PDF
A Brief Introduction To Matlab
DSP Lab Manual
PDF
DSP Lab Manual
Matlab
PDF
Matlab
DSP Lab Manual
PDF
DSP Lab Manual
Introduction To DSP Simulations in MATLAB PDF
PDF
Introduction To DSP Simulations in MATLAB PDF
21eel66_dsp Lab Manual
PDF
21eel66_dsp Lab Manual
Lecture Digital Image Processing 2017: Getting Started
PDF
Lecture Digital Image Processing 2017: Getting Started
Software Toolkit: MATLAB
PDF
Software Toolkit: MATLAB
Lab 2
PDF
Lab 2
Lab 1
PDF
Lab 1
DSP Lab Manual
PDF
DSP Lab Manual
Signal Analysis Using MATLAB
PDF
Signal Analysis Using MATLAB
Matlab Vit
PDF
Matlab Vit
Introduction To MATLAB: Stefan Güttel October 15, 2020
PDF
Introduction To MATLAB: Stefan Güttel October 15, 2020
Matlab Commands PDF
PDF
Matlab Commands PDF
DSP_Manual_Updated_v2
PDF
DSP_Manual_Updated_v2
Lab 1
PDF
Lab 1
Ch2b - Starting With MATLAB
PDF
Ch2b - Starting With MATLAB
DSP Lab Manual 2023
PDF
DSP Lab Manual 2023
Matlab PDF
PDF
Matlab PDF
Linear Control System Lab
PDF
Linear Control System Lab
Matlab Slides 2up PDF
PDF
Matlab Slides 2up PDF
Experiment 01
PDF
Experiment 01
EE 105: MATLAB As An Engineer's Problem Solving Tool
PDF
EE 105: MATLAB As An Engineer's Problem Solving Tool
Lab Sheet 00 Introduction To MATLAB
PDF
Lab Sheet 00 Introduction To MATLAB
Quick Introduction To Matlab: Basic Data Analysis
PDF
Quick Introduction To Matlab: Basic Data Analysis
FCS - Lab 1
PDF
FCS - Lab 1
DSP Manual 1
PDF
DSP Manual 1
Digital Signal Processing Matlab
PDF
Digital Signal Processing Matlab
Matlab Commands
PDF
Matlab Commands
Lab 02
PDF
Lab 02
Final LAC LAB MANUAL
PDF
Final LAC LAB MANUAL
Matlab
PDF
Matlab
Lab 01
PDF
Lab 01
Matlab Basic Functions Reference
PDF
Matlab Basic Functions Reference
Matlab Basic Functions Reference
PDF
Matlab Basic Functions Reference
DSP Lab Manual 15ecl57 Final - CBCS
PDF
DSP Lab Manual 15ecl57 Final - CBCS
Introduction To Matlab: by Kristian Sandberg, Department of Applied Mathematics, University of Colorado
PDF
Introduction To Matlab: by Kristian Sandberg, Department of Applied Mathematics, University of Colorado
Introduction To: Department of Electronics Engineering
PDF
Introduction To: Department of Electronics Engineering
MATLAB Tutorial: MATLAB Basics & Signal Processing Toolbox
PDF
MATLAB Tutorial: MATLAB Basics & Signal Processing Toolbox
IST Lab Manual
PDF
IST Lab Manual
Matlab Familiarisation
PDF
Matlab Familiarisation
Matlab Tutorial F09
PDF
Matlab Tutorial F09
MATLAB For Engineering Applications
PDF
MATLAB For Engineering Applications
Talha - DSP - GCU - Lab1 - 2
PDF
Talha - DSP - GCU - Lab1 - 2
Matlab Command Functions
PDF
Matlab Command Functions
Lab 01
PDF
Lab 01
Introduction To Matlab& Signals: Defining A Scalar
PDF
Introduction To Matlab& Signals: Defining A Scalar