ITEC2600
York University
ITEC 2600 Introduction to Analytical Programming
Practice Questions 1
1. Find out the maximum length of variable name of MATLAB.
2. Create a variable named a, assign value of to a.
(a) What are the values of a and ans in your curr
9/28/2016
Project #1
Problems
AP/ITEC 2600
1. A sphere has a radius of 24 cm. A rectangular prism has sides of a, a/2, and a/4.
a) Determine a of a prism that has the same volume as the sphere.
b) Determine a of prism that has the same surface area as the
ITEC2600 Assignment 1
York University
ITEC 2600 Introduction to Analytical Programming
Assignment 1
Winter 2016
Due: Feb.8, 2:30pm, 2016
Submission Instructions:
Use Moodle to submit your work.
At the top of each le introduce your name and student numbe
ITEC2600 Winter2016
York University
ITEC 2600 Introduction to Analytical Programming
Lab Exercise 1
Winter 2016
Objectives
1. Familiarize yourself of using basics of MATLAB.
2. Practice using loops and vectorized techniques.
3. Practice developing user-de
ITEC2600
Sample Questions of Midterm
York University
1. Multiple Questions.There is only one correct answer in each question.
(a) Given matrix by > mat=[1 2 3; 4 5 6;7 8 9], you want to extract subset of matrix mat,
5 6
i.e. new mat =
. Which of the foll
The relational operators can also be used with
vectors and matrices
Compare the each element in the vector v = [
1 2 3 4 5 6] is greater than 5 or not
Use loops
In MATLAB, use relational operator >
> isg = v > 5
Logical vector with
isg =
logical true 1
Chapter 7
1
A string consists of any number of
characters and is contained in single quotes
A substring is a subset or part of a string
Characters include letters of the alphabet,
digits, punctuation marks, white space, and
control characters
Control cha