Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

Computer Methods in Chemical Engineering 2nd Edition

Rating
-
Sold
-
Pages
14
Grade
A+
Uploaded on
06-09-2024
Written in
2024/2025

Computer Methods in Chemical Engineering 2nd Edition

Institution
Course

Content preview

Computer Methods in Chemical Engineering 2nd
Edition SOLUTION MANUAL by Nayef Ghasem

What will the statement "myNum = 2 + 2" store in myNum? - ANSWER: 4

Suppose you want to automatically generate a vector of with 2 entries; the 1st entry
starting at 0 and ends at 1. How would you create this vector in MATLAB? - ANSWER:
x = linspace(0,1,2)

Whats another way to do this? - ANSWER: 0:1:2

Now Suppose you want to automatically generate a vector of 11 entries; the 1st
entry starting at 0 and ends at 1. How would you create this vector in MATLAB? -
ANSWER: x = linspace(0,1,11)

Whats another way to do this? - ANSWER: 0:1:11

Now Suppose you want to automatically generate a vector with 8 entries; the 1st
entry starting at 0 and ends at 3. How would you create this vector in MATLAB? -
ANSWER: x = linspace(0,3,8) or x = 0:3:8

How would you access the first twelve elements for y? - ANSWER: y = (1:12);
x(1:12)

OR

y = (1:12);
x(1:12)

How would you access the 1st four multiples of 3 specified in a vector? - ANSWER:
y([3 6 9 12])

Write a statement transposing x - ANSWER: x'

Write two statements that notes the difference in tranpose of z - ANSWER: z' and z.'

Elementary functions in MATLAB

Use the following few commands (a script) to make a plot. The evaluation of
v=cos(u) creates a vector whose elements are:
v(k) = cos(u(k)) where k = 1, 2, ...n - ANSWER: n = anu number;
u = linspace(0, 2*pi*n);
v = cos(u);
plot(u,v)

, How would you clean up this plot? - ANSWER: By plotting axis label and a title; the
text inside the single quotes is a string which we intend to be the labels.

xlabel('u');
ylabel('v');
title('v = cos(u)');

command "help plot" would be very helpful

Write a statement that would transpose a 3x4 matrix - ANSWER: x = [1 2 3 4; 5 6 7 8;
9 10 11 12];
x'

x=

1234
5678
9 10 11 12


ans =

159
2 6 10
3 7 11
4 8 12

If the previously-entered statement was "num1 = 5", what value will be stored in
num2 after the statements "num1 = num1 + num1" followed by "num2 = num1 + 3".
- ANSWER: 13;;
The interpreter computes 5 + 5, which is 10, then stores 10 in num1. The interpreter
then computes num1 + 3, which is 10 + 3 or 13, and stores 13 in num2.

If the previously-entered statement was "num1 = 9", what value will be stored in
num2 after the statement "num2 = num1 * num1"? - ANSWER: 81

If all previous statements dealt only with num1, num2, and num3, what value will
the statement "num4" print? - ANSWER: error

If all previous statements dealt only with num1, num2, and num3, what value will
the statement "num4" print? - ANSWER: error

What symbol at the end of a statement suppresses printing of the result? -
ANSWER: ; (semicolon)

Connected book

Written for

Course

Document information

Uploaded on
September 6, 2024
Number of pages
14
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$18.49
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
kushboopatel6867
5.0
(1)

Get to know the seller

Seller avatar
kushboopatel6867 Chamberlain College Nursing
Follow You need to be logged in order to follow users or courses
Sold
3
Member since
1 year
Number of followers
0
Documents
1282
Last sold
7 months ago
EXCELLENT HOMEWORK HELP AND TUTORING ,

EXCELLENT HOMEWORK HELP AND TUTORING ,ALL KIND OF QUIZ AND EXAMS WITH GUARANTEE OF A EXCELLENT HOMEWORK HELP AND TUTORING ,ALL KIND OF QUIZ AND EXAMS WITH GUARANTEE OF A Am an expert on major courses especially; psychology,Nursing, Human resource Management and Mathemtics Assisting students with quality work is my first priority. I ensure scholarly standards in my documents and that's why i'm one of the BEST GOLD RATED TUTORS in STUVIA. I assure a GOOD GRADE if you will use my work.

Read more Read less
5.0

1 reviews

5
1
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions