WS2 Tutorial 2 Exercises

E 100 times ai xi yi add elements and store in

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: e a title and axis labels. 3. Take the script below and perform the same action with no loops in your code.Make sure you show the old script and your new script are equivalent with sample runs. Make sure your code has comments explaining what you are doing. X = randn(1,100); % generate 100 random numbers Y = randn(1,100); % and store in a vector/array Z = randn(1,100); for i = 1:100 % for every element of...
View Full Document

This document was uploaded on 03/18/2014 for the course ENGE 1104 at Virginia Tech.

Ask a homework question - tutors are online