[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: constructing a matrix from a vector
From: |
Jordi Gutiérrez Hermoso |
Subject: |
Re: constructing a matrix from a vector |
Date: |
Wed, 19 Oct 2011 00:23:26 -0500 |
2011/10/18 ishi soichi <address@hidden>:
> Ah, yes. You're taking that course as well? :)
Yes.
> I wanted to execute element-wise subtraction.
> 4 5 6 1 2 3
> 7 8 9 -
> 1 2 3
> 4 5 6
> like that. ".-" doesn't do the job. If there is a better way, it's great.
> But my solution was correct at least using repmat :)
See my answer here:
http://www.ml-class.org/course/qna/view?id=993
HTH,
- Jordi G. H.
Re: constructing a matrix from a vector, Alasdair McAndrew, 2011/10/19