% Engineering 6 Spring 2014
%
% Homework 2 Solution
% Problem 1
clear all
close all
clc
nums=30:-2:10;
% 1. Only even no.s counting down 30 to 10
newNums=nums(mod(nums,3)=0); % 2. Subset of nums. Multiples of 3.
list=1:30;
% 3. Array definition
list(mod(l
ENG 06 Fall 2014 Homework 3
Problem 1
In this problem, we will introduce the concept of differentiation using MATLAB and compare
the MATLAB results with a closed form differentiation expression.
Task1: Create a vector x starts at 0 and stops at 2*pi with
Homework 2 due 11:55PM Thursday 20th August
Problem 1
Suppose you are a design engineer for a company that manufactures consumer
electronic devices and you are estimating the cost of producing a new product. The
product has four components that are purcha
Engineering 6 Winter 2014
Homework 3
Due Monday, January 27
For this assignment,
Complete the required reading preparation (Chapter 6: 1D Array Apps)
Submit a solution for each of the assigned problems. Unless otherwise noted, each problem
should be submi
Engineering 6 Spring 2014
Homework 1
Due Monday, April 7
Before this assignment,
Complete the required preparation (Chapter 1: Introduction to Computing, Chapter 2: Variables,
Assignments, and Expressions and Chapter 3: Scripts
For this assignment,
You wi
Engineering 6, Winter 2009 Midterm Solutions Lecture Section A (TTh 4:40-6:00)
Regrade requests must be submitted in writing to Dr. Lagerstrom no later than the lecture section on Thursday, Feb. 26. Regrades will only be considered in cases where it looks
Problem 1: Linear equations
Part 1:
A theater has a seating capacity of 900. They charge $4/ticket for children, $6/ticket for
students and $8/ticket for adults. At a certain screening with full attendance, there were half as
many adults as children and s
SIMPSON'S RULE W/ FUNCTION FILE %Simpson's method for integral of 1/x from x=2 to x=5. % Note: we first have to define a user-defined function for 1/x result = quad('one_over_x',2,5); disp(['Integral of 1/x from x=2 to x=5 using Simpson's method: ',n
Project 1: Weather Analysis
Collaboration Policy:
This project is to be completed individually. You may talk at a high level about the project with up to 2
other students. They are your collaborators. By high level discussions, we mean that you can say th
Engineering 6 Spring 2016
Homework 7
Due Monday, May 23rd, 11:55 PM
For this assignment,
Complete the required preparation (Reading assignment chapter 13).
Submit a solution for each of the assigned problems. Unless otherwise noted, all
problem solutions
ENG006 ENGINEERING PROBLEM SOLVING
Two 100 min lectures/week & 100 min lab/week
WINTER 2014: JANUARY 7TH - MARCH 18TH.
FINAL: TUESDAY MARCH 19TH, 3:30 5:30
INSTRUCTOR:
Andr Knoesen, Professor, Electrical and Computer Engineering
Email: [email protected]
Ch7: Data analysis 7.1 max and min
Return a row vector of the sample means of the columns of matrix x.
isfinite(x)-Returns an array with ones where the
elements of x are finite and zeros where they are not. For example, isfinite([pi NaN Inf -Inf]) is [1
Engineering 6 Winter 2014
Table of Contents
Solution
Problem
Problem
Problem
Problem
Problem
Problem
Problem
Problem
Problem
Format .
1 .
2 .
3 .
4 .
5 .
6 .
7 .
Problem 1
At a track and field competition, the arrays show the events and the points scored by 2 teams.
event = [1, 2, 3, 4, 5, 6, 7, 8];
teamA = [5, 2, 7, 9, 2, 4, 8, 10];
teamB = [9, 7, 6, 3, 2, 5, 6,
ENG 6 Winter 2014
Homework 9 Cell Arrays & GUI Programming
Submission Instructions
File header should include name and lab section
Submit on Monday by 9pm SHARP
Late homeworks will not be accepted
Each problem should have a separate script named as lastna
2D Arrays
DIMENSIONAL PROPERTIES OF ARRAYS
Length Operator
A vector only has one meaningful dimension, although you don't always
know whether it has only 1 row or instead only 1 column.
Additionally, sometimes you only care about the largest dimension o
ENG006 ENGINEERING PROBLEM SOLVING
Two 100 min lectures/week & 100 min lab/week
WINTER 2014: JANUARY 7TH - MARCH 18TH.
FINAL: WEDNESDAY MARCH 19TH, 3:30 5:30
INSTRUCTOR:
Andr Knoesen, Professor, Electrical and Computer Engineering
Email: [email protected]
ENG 006 ENGINEERING PROBLEM SOLVING
HOMEWORK #4
Due by 11:50 PM, February 6th Monday, 2017
Reading Assignment (Participation Activities on ZyBooks):
7.1 If-else statement
7.3 Multiple branches
7.5 Switch statement
8.1 While loops
8.2 More while examples
8
Numerical Calculus
Copyright 2012 Andr Knoesen. All federal and state copyrights reserved
for all original material presented in this course through any medium,
including lecture or print. Individuals are prohibited from being paid for
taking, selling, or
Symbolic Mathematics
Symbolic Variables
A mathematical expression in MATLAB can contain a symbolic
variable to represent an unknown numerical value.
MATLAB can manipulate symbolic mathematical expressions.
Differentiation, integration, algebraic simpli
ENG006 ENGINEERING PROBLEM SOLVING
Lecture: Two 1hr 20 min lectures/week; Lab:50 min/week.
LECTURE: TR 9:10-10:20 am, 2205 HARING HALL
LABS: 1116 Academic Surge (Consult MyUCDavis for laboratory schedule for a particular section)
FINAL EXAM: Monday, March