%
%
%
%
%
%
%
%
%
%
%
jacobi_par.m - convert linear system Ax=b into Jacobi iteration form x = Bx+c
Usage: [B,c,rho] = jacobi_par(A,b,w)
A = coefficient matrix of linear system Ax=b
b = right-hand side column vector
w = relaxation parameter, default w=1
B
%
%
%
%
%
%
%
%
%
grades1.m
Example on how to read a data file containing
numerical and text data using the MATLAB functions:
fopen, fgetl, fscanf, frewind, textscan, fclose
calls the supplementary function grade.m
440:127 - S. J. Orfanidis
clear all
fclo
Names
Apple, A.
Exxon, E
Facebook, F.
Google, G
Ibm, I.
Microsoft, M.
Twitter, T.
E1
85
20
70
83
85
55
68
E2
87
58
65
54
100
47
45
E3
90
65
72
93
90
59
92
Av
87.6
49.4
70.7
78.3
91.5
54.2
69.3
G
B+
F
C
B
A
D
C+
function G = grade(g)
if g >= 90,
G = 'A ';
elseif g >= 85,
G = 'B+';
elseif g >= 75,
G = 'B ';
elseif g >= 70,
G = 'C+';
elseif g >= 60,
G = 'C ';
elseif g >= 50,
G = 'D ';
else
G = 'F ';
end
% assign letter grade
Rutgers University
School of Engineering
Spring 2016
14:440:127 - Introduction to Computers for Engineers
Marco Gruteser and Saad Khan
(Based in part on Slides by Sophocles J. Orfanidis and K.Y. Daisy Fan)
ECE Department
Lecture 8
Plotting and Graphics
To
Rutgers University
School of Engineering
Fall 2015
14:440:127 - Introduction to Computers for Engineers
Marco Gruteser and Saad Khan
(Based in part on Slides by Sophocles J. Orfanidis and K.Y.
Daisy Fan)
ECE Department
Lecture 2
MATLAB Basics
1.
2.
3.
4.
Rutgers University
School of Engineering
Spring 2016
14:440:127 - Introduction to Computers for Engineers
Marco Gruteser and Saad Khan
(Lecture Slides by Sophocles J. Orfanidis)
ECE Department
Lecture 1
Our Guiding Principles
The purpose of computing is i
Rutgers University
School of Engineering
Spring 2016
14:440:127 - Introduction to Computers for Engineers
Marco Gruteser and Saad Khan
(Based in part on Slides by Sophocles J. Orfanidis and K.Y. Daisy
Fan)
ECE Department
Lecture 7
Topical Course Outline a
Rutgers University
School of Engineering
Spring 2016
14:440:127 - Introduction to Computers for Engineers
Marco Gruteser and Saad Khan
(Based in part on Slides by Sophocles J. Orfanidis and K.Y.
Daisy Fan)
ECE Department
Lecture 3
Topical Course Outline
1
Rutgers University
School of Engineering
Fall 2015
14:440:127 - Introduction to Computers for Engineers
Marco Gruteser and Saad Khan
(Based in part on Slides by Sophocles J. Orfanidis and K.Y.
Daisy Fan)
ECE Department
Lecture 4
So far, all the statement
Rutgers University
School of Engineering
Fall 2015
14:440:127 - Introduction to Computers for Engineers
Marco Gruteser and Saad Khan
(Lecture Slides by Sophocles J. Orfanidis)
ECE Department
Lecture 9
Topical Course Outline
11 Lectures, 10 Recitations, 2
Rutgers University
School of Engineering
Spring 2016
14:440:127 - Introduction to Computers for Engineers
Marco Gruteser and Saad Khan
(Based in part on Slides by Sophocles J. Orfanidis and K.Y. Daisy Fan)
ECE Department
Lecture 6
Managing Complexity Thro
Rutgers University
School of Engineering
Spring 2016
14:440:127 - Introduction to Computers for Engineers
Marco Gruteser and Saad Khan
(Based in part on Slides by Sophocles J. Orfanidis and K.Y. Daisy Fan)
ECE Department
Lecture 8
Topical Course Outline
1
Rutgers University
School of Engineering
Spring 2016
14:440:127 - Introduction to Computers for Engineers
Marco Gruteser and Saad Khan
(Lecture Slides by Sophocles J. Orfanidis)
ECE Department
Lecture 5
Topical Course Outline and Schedule
11 Lectures, 10
440:127 Sample Exam
Please make sure your exam copy has 4 problems in 4 pages.
Problems are equally weighted. Spend 20 min per problem.
You may use the reverse pages for extra writing space.
Student Name:
ID:
1. Define the row vector x = [3, 4, 5]. For ea
Recitation Problems Week 8
440:127 Spring 2016 M. Gruteser and S. Khan
Please do the following problems during your recitation session, including any additional problems given to you
by your TA. Within 72hrs of your recitation session, you must upload the
Recitation Problems Week 7
440:127 Spring 2016 M. Gruteser and S. Khan
Please do the following problems during your recitation session, including any additional problems given to you
by your TA. Within 72hrs of your recitation session, you must upload the
Recitation Problems Week 10
440:127 Spring 2016 M. Gruteser and S. Khan
Please do the following problems during your recitation session, including any additional problems given to you
by your TA. Within 72hrs of your recitation session, you must upload th
Recitation Problems Week 5
440:127 Spring 2016 M. Gruteser and S. Khan
Please do the following problems during your recitation session, including any additional problems given to you
by your TA. Within 72hrs of your recitation session, you must upload the
Recitation Problems Week 4
440:127 Spring 2016 M. Gruteser and S. Khan
Please do the following problems during your recitation session, including any additional problems given to you
by your TA. BEFORE MIDNIGHT of the day of your recitation session, you m
Recitation Problems Week 1
440:127 Spring 2016 M. Gruteser and S. Khan
Please do the following problems during your recitation session, including any additional problems given to you
by your TA. Within 72hrs of your recitation session, you must upload the
Recitation Problems Week 2
440:127 Spring 2016 M. Gruteser and S. Khan
Please do the following problems during your recitation session, including any additional problems given to you
by your TA. Within 72hrs of your recitation session, you must upload the
Recitation Problems Week 6
440:127 Spring 2016 M. Gruteser and S. Khan
Please do the following problems during your recitation session, including any additional problems given to you
by your TA. Within 72hrs of your recitation session, you must upload the
Recitation Problems Week 3
440:127 Spring 2016 M. Gruteser and S. Khan
Please do the following problems during your recitation session, including any additional problems given to you
by your TA. Within 72hrs of your recitation session, you must upload the
Cell and Structure Arrays
A cell array is an array in which each element is a bin, or cell, which can
contain an array. You can store different classes of arrays in a cell array, and you can group data sets that are related but have different dimens