This preview shows page 1. Sign up to view the full content.
Unformatted text preview: kspace??
Moral: be careful when comparing real
numbers. They may be algebraically
equal, but binary conversion (or
truncation) may change that.
Education Questions: ink on this slide 1. What character suppresses the output of
an assignment statement?
2. What character will cause MATLAB to
ignore the rest of that line of code?
3. What would fprintf(‘VT%7.3f’,pi)
4. What shape represents a decision
5. How many outs in an inning of baseball?
6. How many billionaires in the world?
(b..b…billion) FYI……some MATLAB intrinsic (built in) functions:
•Trig functions such as sin, sind, atan, atand
To avoid conflict, use capital letters in your variables!
Education Enter the following at the command prompt and check
>> num=input(‘enter a number please: ‘,’s’);
Respond with the number 9 as input, then type:
>> fprintf(‘\n the number is %.0f’, num);
What is the response? Why? LECTURE
Education Exercise: Individual work: (3 minutes) Write a mathematical or algebraic algorithm
View Full Document
This note was uploaded on 01/28/2014 for the course ENGE 1114 taught by Professor Twknott during the Spring '06 term at Virginia Tech.
- Spring '06