Matlab

 

  1. In the command window, type 3 + 5 at the >> prompt
    • What happened in each of the three windows ?

 

Don't use plagiarized sources. Get Your Custom Essay on
Matlab
Just from $13/Page
Order Essay
  • What is ans , and where did it come from ?

 

  1. In the command indow, type x = 7 at the >> prompt

 

  • What happened in each of the three windows ?

 

  • What is x, and where did it come from ?

 

  1. In the command window, type y = x + 4 at the >> prompt
    • What happened in each of the three windows ?

 

  • Why does y have the value it does, where did it come from ?

 

  1. In the command window, type clc at the >> prompt

 

  • What happened in each of the three windows ?

 

  1. In the command window, type clear at the >> prompt
    • What happened in each of the three windows ?

 

  1. Double click the command y = x + 4 in Command History
    • What happened in each of the three windows ?

 

  • Why does it report Undefined function or variable ’x’ ?

 

  1. Double click the command x = 7 in Command History
    • What happened in each of the three windows ?

 

  1. Double click the command y = x + 4 in Command History
    • What happened in each of the three windows ?

 

  • Does the previous report of Undefined function or variable ’xnow make sense?

 

  1. Really think about what clc did and what clear did, try to summarize an important difference between

 

  1. In the command window, type x = 5 at the >> prompt 1 What happened in each of the three windows ?

 

10.2 How is this different than the first time we typed x = 7 ?

 

  1. In the command window, type x = 5; at the >> prompt 1 What happened in each of the three windows ?

 

11.2 How is this different than when we just typed x = 5 ?

 

  1. In the command window, type ignore this at the >> prompt 1 What happened in each of the three windows ?

 

  1. 2Why does it report Undefined function or variable ’ignore’ ?

 

  1. In the command window, type %ignore this at the >> prompt
    • What happened in each of the three windows ?

 

  • Why does it not report Undefined function or variable ’ignore’. this time ?

 

  • What does the symbol % do ?

 

  1. Right click the Command History title, select Clear Command History, and click yes in the pop-up “Warning” window
    • What happened in each of the three windows ?

 

  • How is this different from clc and clear that we used earlier ?

 

  • Play around with different versions and combinations of the above commands, try “new” things to see what works / happens – you cannot break any

 

  • Create a new Text Document on your Windows desktop – name it Lab1

 

  • Open Lab1 Text Document on your Windows desktop

 

  • Copy and Paste the entire contents of the Command Window and your answers on the above questions into your opened Lab1 Text Document and save the