{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

# lab3 - MATLAB DSP Graphics Module No CM0268 Laboratory...

This preview shows pages 1–3. Sign up to view the full content.

MATLAB, DSP, Graphics Module No: CM0268 Laboratory Worksheet 3: MATLAB Functions, Graphics and GUI Prof. D. Marshall, Dr. Y. Lai Aims and Objectives After working through this worksheet you should be familiar with: The basic operation of functions in MATLAB Create and use MATLAB m-files effectively Understand some basic MATLAB graphics functions The basic construction of Graphical User Interfaces in MATLAB How to call MATLAB Functions from a simple Graphical User Inter- face. None of the work here is part of the assessed coursework for this module 1

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
MATLAB Functions, Graphics and GUI MATLAB Functions and m-files For each of the below, create a function, store in an appropriate m-file and then call the function from MATLAB command line: 1. Write a function that takes in a integer n , computes the sum of the series 1 2 + 2 2 + 3 2 . . . such that the sum is as large as possible with- out exceeding n . Up to two values can be returned, including the number of terms, and (optionally) the corresponding sum.
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern