Embed Code - If you would like this activity on your web page, copy the script below and paste it into your web page.

Normal Size Small Size show me how

Normal Size Small Size show me how

# EAS230 Week 1

### The first week of MATLAB information

Question | Answer |
---|---|

What is the assignment operator? | = |

exponentiation operation | a^b |

multiplication operation | a*b |

right division operation | a/b |

left division operation | a\b |

addition operation | a+b |

subtraction operation | a-b |

Whats the command to clear the Command Window? | clc |

What is the comment character? | % |

What is the square root function? | sqrt(x) |

What is the sin function (in radians)? | sin(x) |

What is the sin function (in degrees)? | sind(x) |

What is the cos function (in radians)? | cos(x) |

What is the cos function (in degrees)? | cosd(x) |

What is the tan function (in radians)? | tan(x) |

What is the tan function (in degrees)? | tand(x) |

What is the cot function (in radians)? | cot(x) |

What is the cot function (in degrees)? | cotd(x) |

What is the inverse trig function of sin (radians and degrees)? | asin(x) and asind(x) |

What is the inverse trig function of cos (radians and degrees)? | acos(x) and acosd(x) |

What is the inverse trig function of tan (radians and degrees)? | atan(x) and atand(x) |

What is the inverse trig function of cot (radians and degrees)? | acot(x) and acotd(x) |

What is the function to "round to the nearest integer?" | round(x) |

What is the function to "round toward zero?" | fix(x) |

What is the function to "round toward infinity?" | ceil(x) |

What is the function to "round toward minus infinity?" | floor(x) |

What is the function that "returns the remainder after x is divided by y" | rem(x,y) |

What is the signum function, "returns 1 if x >0 , -1 if x < 0, and 0 if x = 0?" | sign(x) |

What must a MATLAB variable name begin with? | a letter |

What is the purpose of the semicolon (;)? | It does not display the variable with its assigned value |

How to put multiple assignment commands on one line? | a comma |

Created by:
1115740578612777