[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Matrices
From: |
Alberto Luaces |
Subject: |
Re: Matrices |
Date: |
Tue, 14 Feb 2017 16:30:17 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) |
CluelessRory writes:
> Hi,
> I'm trying to assign shelf locations of a warehouse to cells in a matrix,
> with the aim of being able to measure the x-y distance between any two
> locations on the shelves.
>
> 11 12 13 14
> 21 22 23 24
> 31 32 33 34
> 41 42 43 44
>
> For instance, I would want to be able to measure the distance from location
> 34 to location 12 (Which should give me (3x + 4y) - (x + 2y) = 2x + 2y.
> How do I go about doing this on Octave?
> Please help.
I think you already wrote it:
>> [3 4] - [1 2]
ans =
2 2
--
Alberto
- Matrices, CluelessRory, 2017/02/14
- Re: Matrices,
Alberto Luaces <=