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)
23 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)
23 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
Hourglass Workout Program by Luisagiuliet 2
PDF
76% (21)
Hourglass Workout Program by Luisagiuliet 2
51 pages
12 Week Program: Summer Body Starts Now
PDF
87% (46)
12 Week Program: Summer Body Starts Now
70 pages
Read People Like A Book by Patrick King-Edited
PDF
58% (81)
Read People Like A Book by Patrick King-Edited
12 pages
Livingood, Blake - Livingood Daily Your 21-Day Guide To Experience Real Health
PDF
77% (13)
Livingood, Blake - Livingood Daily Your 21-Day Guide To Experience Real Health
260 pages
Cheat Code To The Universe
PDF
94% (79)
Cheat Code To The Universe
34 pages
Facial Gains Guide (001 081)
PDF
91% (45)
Facial Gains Guide (001 081)
81 pages
Curse of Strahd
PDF
95% (467)
Curse of Strahd
258 pages
The Psychiatric Interview - Daniel Carlat
PDF
91% (34)
The Psychiatric Interview - Daniel Carlat
473 pages
Can't Hurt Me
PDF
70% (30)
Can't Hurt Me
10 pages
The Borax Conspiracy
PDF
91% (57)
The Borax Conspiracy
14 pages
Anastasia: The New Broadway Musical (LIBRETTO)
PDF
94% (175)
Anastasia: The New Broadway Musical (LIBRETTO)
117 pages
COSMIC CONSCIOUSNESS OF HUMANITY - PROBLEMS OF NEW COSMOGONY (V.P.Kaznacheev,. Л. V. Trofimov.)
PDF
94% (215)
COSMIC CONSCIOUSNESS OF HUMANITY - PROBLEMS OF NEW COSMOGONY (V.P.Kaznacheev,. Л. V. Trofimov.)
212 pages
I Hate You - Don't Leave Me
PDF
80% (54)
I Hate You - Don't Leave Me
6 pages
TDA Birth Certificate Bond Instructions
PDF
97% (285)
TDA Birth Certificate Bond Instructions
4 pages
The Secret Language of Attraction
PDF
86% (108)
The Secret Language of Attraction
278 pages
How To Develop and Write A Grant Proposal
PDF
83% (542)
How To Develop and Write A Grant Proposal
17 pages
Penis Enlargement Secret
PDF
60% (124)
Penis Enlargement Secret
12 pages
Workbook For The Body Keeps The Score
PDF
89% (53)
Workbook For The Body Keeps The Score
111 pages
Donald Trump & Jeffrey Epstein Rape Lawsuit and Affidavits
PDF
83% (1016)
Donald Trump & Jeffrey Epstein Rape Lawsuit and Affidavits
13 pages
KamaSutra Positions
PDF
78% (69)
KamaSutra Positions
55 pages
7 Hermetic Principles
PDF
93% (30)
7 Hermetic Principles
3 pages
27 Feedback Mechanisms Pogil Key
PDF
77% (13)
27 Feedback Mechanisms Pogil Key
6 pages
Frank Hammond - List of Demons
PDF
92% (92)
Frank Hammond - List of Demons
3 pages
Phone Codes
PDF
79% (28)
Phone Codes
5 pages
36 Questions That Lead To Love
PDF
91% (35)
36 Questions That Lead To Love
3 pages
How 2 Setup Trust
PDF
97% (307)
How 2 Setup Trust
3 pages
2025 MandateForLeadership FULL
PDF
70% (10)
2025 MandateForLeadership FULL
920 pages
The 36 Questions That Lead To Love - The New York Times
PDF
94% (34)
The 36 Questions That Lead To Love - The New York Times
3 pages
100 Questions To Ask Your Partner
PDF
78% (36)
100 Questions To Ask Your Partner
2 pages
Satanic Calendar
PDF
25% (56)
Satanic Calendar
4 pages
The 36 Questions That Lead To Love - The New York Times
PDF
95% (21)
The 36 Questions That Lead To Love - The New York Times
3 pages
14 Easiest & Hardest Muscles To Build (Ranked With Solutions)
PDF
100% (8)
14 Easiest & Hardest Muscles To Build (Ranked With Solutions)
27 pages
Jeffrey Epstein39s Little Black Book Unredacted PDF
PDF
75% (12)
Jeffrey Epstein39s Little Black Book Unredacted PDF
95 pages
ALCHEMIST
PDF
64% (14)
ALCHEMIST
4 pages
1001 Songs
PDF
69% (72)
1001 Songs
1,798 pages
The 4 Hour Workweek, Expanded and Updated by Timothy Ferriss - Excerpt
PDF
23% (954)
The 4 Hour Workweek, Expanded and Updated by Timothy Ferriss - Excerpt
38 pages
Zodiac Sign & Their Most Common Addictions
PDF
63% (30)
Zodiac Sign & Their Most Common Addictions
9 pages
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