MATLAB Functions - PowerPoint PPT Presentation

1 / 6
About This Presentation
Title:

MATLAB Functions

Description:

MATLAB functions represent more complicated tasks beyond arithmetic and logical operators. All functions can be written via the simple operations we already learnt ... – PowerPoint PPT presentation

Number of Views:50
Avg rating:3.0/5.0
Slides: 7
Provided by: saikatmuk
Category:
Tags: matlab | functions

less

Transcript and Presenter's Notes

Title: MATLAB Functions


1
MATLAB Functions
2
MATLAB Functions
  • MATLAB functions represent more complicated tasks
    beyond arithmetic and logical operators
  • All functions can be written via the simple
    operations we already learnt
  • Using functions is more efficient

3
Finding Functions
  • Help-gtMATLAB Help-gtFunctions
  • You can search by category or by name
  • Functions takes in arguments and returns outputs
  • out1, out2, outnfunc(arg1, arg2, argm)
  • If function is applied to an array, the function
    is applied element by element to all values in
    the array

4
Fun with Functions
  • Find a function that requires two arguments
  • What is the difference between sum() and cumsum()
    ?
  • What is the function to find the square root ?
  • Can it be implemented using nthroot ?
  • Can it be implemented using power ?
  • What is the difference between floor(), round(),
    ceil() and fix()
  • What is the difference between plot and plot3 ?
  • Name two functions that provide the date

5
Summary
  • What we learned cumsum, nthroot, power, floor,
    ceil, round,fix,plot,plot3
  • Section 4.1

6
(No Transcript)
Write a Comment
User Comments (0)
About PowerShow.com