MATLAB POLYSPACE RELEASE NOTES Instrukcja Użytkownika Strona 160

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 240
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 159
4 Programming
Function
s
Function
s are M-files that can accept input arguments and return output
argument
s. ThenamesoftheM-fileandofthefunctionshouldbethesame.
Function
s operate on variables within their own workspace, separate from the
workspa
ce you access at the M ATLAB command prompt.
A good ex
ample is provided by
rank.TheM-filerank.m is available in the
directo
ry
toolbox/matlab/matfun
You can see the file with
type rank
Here is the fil e:
function r = r ank(A,tol)
% RANK Matrix rank.
% RANK(A) provides an estimate of the number of l inearly
4-22
Przeglądanie stron 159
1 2 ... 155 156 157 158 159 160 161 162 163 164 165 ... 239 240

Komentarze do niniejszej Instrukcji

Brak uwag