Consider X to be a 100-by-100 matrix. Which of the following commands will extract elements common to every 2nd row (starting from the 2nd row) and every 3rd column (starting from the 1stcolumn)? Select one: a. X(2:2:end, 1:3:end) b. X[1:2:end, 1:3:end] c. X([2:, 3:]) d. X([2:2:end, 1:3:end]) e. X(1:2:99, 1:3:96)

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
icon
Concept explainers
Question

Q1

Consider X to be a 100-by-100 matrix. Which of the following commands will extract elements common to every 2nd row (starting from the 2nd row) and every 3rd column (starting from the 1stcolumn)?

Select one:
a.
X(2:2:end, 1:3:end)
b.
X[1:2:end, 1:3:end]
c.
X([2:, 3:])
d.
X([2:2:end, 1:3:end])
e.
X(1:2:99, 1:3:96)
 
Q2

Which of the following syntax performs the forward elimination process in Gaussian elimination? Here r represents the row index, c is the column index and n represents the number of rows in the augmented matrix.

Select one:
a.
Aug(r,:) = Aug(r,:) - factor*Aug(c,:)
b.
Aug(r,c) = Aug(r,c) - factor*Aug(c,:)
c.
Aug(r,[c n+1]) = Aug(r,[c n+1]) - factor*Aug(r,[c n+1])
d.
Aug(r,n+1) = Aug(r,n+1) - factor*Aug(c,:)
e.
Aug(r,c) = Aug(r,:) - factor*Aug(c,c)
Clear my choice
 
Q3

Which syntax will solve for the differential equation using the in-built function ode45() with a time interval of 0 to 10 and an initial condition of 0?

 

Select one:
a.
[t,y] = ode45(@(t,y) 3*t*y, [0 10], 0)
b.
[t,y] = ode45(@(t) 3*t, [0 10], 0)
c.
[t,y] = ode45(@(t,y) 3*t, [0 10], 0)
d.
[t,y] = ode45(@(t,y) 3*t, 0, 10, 0)
e.
[t,y] = ode45(@(y,t) 3*t*y, [0 10], 0)
 
Expert Solution
Step 1

Given:

 

1) Consider X to be a 100-by-100 matrix. Which of the following commands will extract elements common to every 2nd row (starting from the 2nd row) and every 3rd column (starting from the 1stcolumn)?

 

 

 

As per the company Guidelines we have restricted to answer only one answer. Please post other questions as seperate...

steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
Concepts in designing Database
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education