Week2 - Use a single quote to transpose data To access the...

Info iconThis preview shows pages 1–7. Sign up to view the full content.

View Full Document Right Arrow Icon
MATLAB Week 2 for Friday Recitation
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
2.4 M file will appear in the left window Run code. Copy and paste editor window and command window for recitation exercises into a word document
Background image of page 2
HW Submission %%name, RU-ID, Section # %%HW Set #, Submitted Date function set1 problem1 problem2 problem3 problem4 function problem 1
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
3.5 MATLAB will column dominant. When evaluating data, MATLAB will choose columns first over rows. Data must be transposed if you are evaluating data in rows.
Background image of page 4
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 6
Background image of page 7
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Use a single quote to transpose data To access the value for a position in a matrix, use form <matrix>(<row>,<column>) 7.2 fprintf is the formatted print function % is a placeholder where the variable is inserted clc clear a=[0 1 2 3]; b=[10 20 30 40]; table=[a;b]; 8.4 If statement structure if comparison statements end Ex: G=25 if G<50 9.1 For loop structure for index=[matrix] commands to be executed end Ex: for k=1:3 a=5^k...
View Full Document

Page1 / 7

Week2 - Use a single quote to transpose data To access the...

This preview shows document pages 1 - 7. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online