Matlab Programming For Numerical Computation - Unit 3 - Module 1 - Introduction To MATLAB
Matlab Programming For Numerical Computation - Unit 3 - Module 1 - Introduction To MATLAB
(https://swayam.gov.in) (https://swayam.gov.in/nc_details/NPTEL)
arunachalam725@gmail.com
Course outline
How does an
Assignment 1
NPTEL online The due date for submitting this assignment has passed. Due on 2020-02-12, 23:59 IST.
course work? As per our records you have not submitted this assignment.
Get Access to
MATLAB Online
Problem 1: Obtaining the Minimum Value
For x in the range x = [0:0.07:5];
Module 1: calculate f (x) 2
= x e
−x
. Report the value of x at which f (x) is minimum
Introduction to
1) Please report the value of x at the minima
MATLAB
Lecture 1.1:
Basics of No, the answer is incorrect.
Programming Score: 0
using MATLAB Accepted Answers:
(unit? (Type: Range) 2.025,2.035
unit=1&lesson=2) (Type: Numeric) 0
Lec 1.2: Array 0.5 points
Operations in
MATLAB (unit? 2) Please report the minimum value f(x) obtained at the minima
unit=1&lesson=3)
https://onlinecourses.nptel.ac.in/noc20_ge05/unit?unit=1&assessment=87 1/5
1/22/2021 Matlab Programming for Numerical Computation - - Unit 3 - Module 1: Introduction to MATLAB
(assessment?
name=87)
3) Please report the result evenSum for
Matlab x 1 = [7, 1, 4, 8, 7, 9, 6]
Programming for
Numerical
Computation :
Week 1 No, the answer is incorrect.
Feedback Form Score: 0
(unit? Accepted Answers:
unit=1&lesson=90) (Type: Numeric) 18
Module 2: Errors
and
Approximations No, the answer is incorrect.
Score: 0
Module 3: Accepted Answers:
Numerical (Type: Numeric) 184
Differentiation and
0.25 points
Integration
Next, we will use the following two lines of code to generate another vector x 2 :
Module 4: Linear
rng(25);
Equations
x2=randn(1,8);
Module 6:
Regression and No, the answer is incorrect.
Interpolation Score: 0
Accepted Answers:
(Type: Range) -1.355,-1.33
Module 7:
Ordinary 0.25 points
Differential
6) Please report the result funVal for x 2
https://onlinecourses.nptel.ac.in/noc20_ge05/unit?unit=1&assessment=87 2/5
1/22/2021 Matlab Programming for Numerical Computation - - Unit 3 - Module 1: Introduction to MATLAB
Equations (single
variable)
No, the answer is incorrect.
Score: 0
Module 8: ODE-
Accepted Answers:
IVP - Practical
(Type: Range) -4.0,-3.7
Aspects
0.25 points
Final Exam
Pattern and
Download
Text Transcripts
Problem 3: Matrix Problem
Consider a matrix:
Download videos
Books
0.25 points
0.25 points
9) We wish to extract the vector, indicated by the blue box, from the above matrix. Please write the code
below. The expected result from your code is the vector:
b = [ 1 3 −2 1 ].
(Note: Please ensure that you do not use spaces in the answer)
A dA
https://onlinecourses.nptel.ac.in/noc20_ge05/unit?unit=1&assessment=87 3/5
1/22/2021 Matlab Programming for Numerical Computation - - Unit 3 - Module 1: Introduction to MATLAB
Accepted Answers:
String containing any of these (OR): /(.*)(?:\b2:5\b|\b2:end\b)(.*)/i
String containing any of these (OR): /(.*)(?:\b2:1:5\b|\b2:1:end\b)(.*)/i
0.25 points
10)We wish to extract the sub-matrix indicated by the red box, from the above matrix.
Please fill in the blank for the code below: B = A(3:4, ________);
0.25 points
11)Choose all the valid commands that will give you the above figure in MATLAB 1 point
plot(t,N,'-krd');
https://onlinecourses.nptel.ac.in/noc20_ge05/unit?unit=1&assessment=87 4/5
1/22/2021 Matlab Programming for Numerical Computation - - Unit 3 - Module 1: Introduction to MATLAB
plot(t,N,'-kd');
plot(t,N,'-rd');
plot(t,N,'-k',t,N,'rd');
plot(t,N,'-kd','MarkerEdgeColor','r')
plot(t,N,'-kd','Color','r');
No, the answer is incorrect.
Score: 0
Accepted Answers:
plot(t,N,'-k',t,N,'rd');
plot(t,N,'-kd','MarkerEdgeColor','r')
https://onlinecourses.nptel.ac.in/noc20_ge05/unit?unit=1&assessment=87 5/5