P. 1
Math Lab

Math Lab

|Views: 130|Likes:
Published by mynoytech

More info:

Published by: mynoytech on Oct 07, 2011
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

08/07/2012

pdf

text

original

AssumeXis anm-by-n-by-p-by-q-by-... array andYis anm-by-mmatrix and you want to construct
a new m-by-n-by-p-by-q-by-... array Z, where

Z(:,:,i,j,...) = Y \ X(:,:,i,j,...);

for alli=1,...,p, j=1,...,q, etc. This can be done with nested for-loops, or by the following
vectorized code

Z = reshape(Y\X(:,:), size(X));

CHAPTER 10. BASIC ARITHMETICOPERATIONS

34

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->