Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

## pymat-users — Mailing list for users of PyMat

You can subscribe to this list here.

 2003 2004 2005 2006 2007 2008 2009 Jan Feb Mar Apr May Jun Jul Aug Sep (1) Oct Nov Dec Jan Feb Mar Apr May (1) Jun (1) Jul Aug Sep Oct (2) Nov (1) Dec Jan Feb Mar Apr May (2) Jun Jul Aug Sep (3) Oct Nov Dec Jan Feb (1) Mar Apr (1) May Jun Jul Aug Sep Oct Nov Dec Jan (2) Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec Jan Feb Mar (1) Apr May Jun Jul Aug Sep Oct Nov Dec Jan (3) Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec (1)
S M T W T F S

1

2
(1)
3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

Showing 1 results of 1

 [Pymat-users] Problem passing x = array([1, 2, 3, 4, 5]) to Matlab From: Varun Puri - 2006-04-02 18:10:56 Attachments: Message as HTML Hi I am a Masters student at UTD and have started learning Python. I had a really good experience at Pycon 2006. I am kinda stuck on a small issue of PyMat. I am tryin to pass a Numeric array to Matlab 7.0.1 I am running Python 2.2 (as PyMat supports that) on Windows XP. The problem is that when i pass x = array([1, 2, 3, 4, 5]) to Matlab by using >>> import pymat >>> from Numeric import * >>> x = array([1, 2, 3, 4, 5]) >>> H = pymat.open() >>> pymat.put(H, 'x', x) the value of x is [1, 2, 3, 4, 5] in Python, but when it gets passed to Matlab, it becomes [0 0 0 0 0] ... all zeros. Can anyone suggest what needs to be done. any help would be appreciated. - Varun --------------------------------- New Yahoo! Messenger with Voice. Call regular phones from your PC for low, low rates.

Showing 1 results of 1