New User Special Price Expires in

Let's log you in.

Sign in with Facebook


Don't have a StudySoup account? Create one here!


Create a StudySoup account

Be part of our community, it's free to join!

Sign up with Facebook


Create your account
By creating an account you agree to StudySoup's terms and conditions and privacy policy

Already have a StudySoup account? Login here

Computing for Engineers

by: Mrs. Alaina Hermiston

Computing for Engineers ENGR 1731

Mrs. Alaina Hermiston
GPA 3.62

Maria Alba-Flores

Almost Ready


These notes were just uploaded, and will be ready to view shortly.

Purchase these notes here, or revisit this page.

Either way, we'll remind you when they're ready :)

Preview These Notes for FREE

Get a free preview of these Notes, just enter your email below.

Unlock Preview
Unlock Preview

Preview these materials now for free

Why put in your email? Get access to more of this material and other relevant free materials for your school

View Preview

About this Document

Maria Alba-Flores
Class Notes
25 ?




Popular in Course

Popular in General Engineering

This 8 page Class Notes was uploaded by Mrs. Alaina Hermiston on Monday October 12, 2015. The Class Notes belongs to ENGR 1731 at Georgia Southern University taught by Maria Alba-Flores in Fall. Since its upload, it has received 17 views. For similar materials see /class/222069/engr-1731-georgia-southern-university in General Engineering at Georgia Southern University.


Reviews for Computing for Engineers


Report this Material


What is Karma?


Karma is the currency of StudySoup.

You can buy or earn more Karma at anytime and redeem it for class notes, study guides, flashcards, and more!

Date Created: 10/12/15
ENGR 1731 bomputlng 10139 unglneers Mechanical and Electrical Engineering Technology Lecture 7 Vectors in Matlab Examples Prof AlbaFlores Vectors in Matlab Examples What the following Matlab statements do 1 x linspace314010 2 X37 Y copies the third through seventh elements of x into the rst through fourth elements or y It y did not already exist it is created by the assignment 3 y3 What the following Matlab statements do 3 z linspace2l255 4 2 7 5 z7 9 21 22 23 24 25 x onesl5 creo res 0 row vector of length 5 filled with ones 7 y zeros5l creo res 0 column veo ror of length 5 filled with zeros Other example Consider the following arrays A and B A 550 600 590 400 600 B 530 600 610 500 600 Write a Matlab program that will calculate The number of elements in array A that are greater or equal to the elements in array B Call the result R1 How many times the elements in array A are greater that 550 Call the result R2 Working with vectors Example Program vectorsexlm o0 o0 This program compares the vectors A and B and computes the tollowing 1 Calculate the number of elements in A that are greater or equal to the elements in B Call the result R1 2 How many times the elements in array A are greater than 550Call the result R2 o0 o0 o0 o0 o0 oc 00 Clear Definition of the two arrays A 550 600 590 400 600 B 530 600 610 500 600 SOLUTION TO QUESTION 1 xl is an array that contains the elements of A that are greater or equal to the elements in B o0 o0 xlAAgtB answ Xl 550 600 600 yl is a 1x2 array that will give the number of rows and the number of columns of array xl ylsizexl answ yl l j R1 is a scalar that will give the number of columns of array yl Rlyl2 answ Rl 3 display39Number of elements in A that are gt or to elements in B39 R1


Buy Material

Are you sure you want to buy this material for

25 Karma

Buy Material

BOOM! Enjoy Your Free Notes!

We've added these Notes to your profile, click here to view them now.


You're already Subscribed!

Looks like you've already subscribed to StudySoup, you won't need to purchase another subscription to get this material. To access this material simply click 'View Full Document'

Why people love StudySoup

Bentley McCaw University of Florida

"I was shooting for a perfect 4.0 GPA this semester. Having StudySoup as a study aid was critical to helping me achieve my goal...and I nailed it!"

Allison Fischer University of Alabama

"I signed up to be an Elite Notetaker with 2 of my sorority sisters this semester. We just posted our notes weekly and were each making over $600 per month. I LOVE StudySoup!"

Steve Martinelli UC Los Angeles

"There's no way I would have passed my Organic Chemistry class this semester without the notes and study guides I got from StudySoup."

Parker Thompson 500 Startups

"It's a great way for students to improve their educational experience and it seemed like a product that everybody wants, so all the people participating are winning."

Become an Elite Notetaker and start selling your notes online!

Refund Policy


All subscriptions to StudySoup are paid in full at the time of subscribing. To change your credit card information or to cancel your subscription, go to "Edit Settings". All credit card information will be available there. If you should decide to cancel your subscription, it will continue to be valid until the next payment period, as all payments for the current period were made in advance. For special circumstances, please email


StudySoup has more than 1 million course-specific study resources to help students study smarter. If you’re having trouble finding what you’re looking for, our customer support team can help you find what you need! Feel free to contact them here:

Recurring Subscriptions: If you have canceled your recurring subscription on the day of renewal and have not downloaded any documents, you may request a refund by submitting an email to

Satisfaction Guarantee: If you’re not satisfied with your subscription, you can contact us for further help. Contact must be made within 3 business days of your subscription purchase and your refund request will be subject for review.

Please Note: Refunds can never be provided more than 30 days after the initial purchase date regardless of your activity on the site.