homew 8

homew 8 - function res=SystemClock t0=now td=now-t0 while...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Exercise 9.3 function [aa,bb]=swap(a,b); aa=b; bb=a; end [a,b]=swap(4,5) a = 5 b = 4 Exercise 9.9 function res=cincr global c if isempty(c) c=0; end c=c+1 function res=creset global c if isempty(c) c=0; end c=0 function res=cset(x) global c if isempty(c) c=0; end c=x function res=creport global c if isempty(c) c=0; end c Exercise 10.1
Background image of page 1

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

View Full Document Right Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: function res=SystemClock t0=now; td=now-t0; while td==0 td=now-t0; end td >> SystemClock td = 1.8510e-007 Exercise 10.7 for items = 1:1:inf items = {'Yes'}; k = menu('Problem 10.7',items); if k==1; items={'No'}; menu('Problem 10.7',items); else break; end; end...
View Full Document

{[ snackBarMessage ]}

Page1 / 2

homew 8 - function res=SystemClock t0=now td=now-t0 while...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online