From: Alexander Plus on 16 Feb 2010 03:54 I created simple memmap (c:\records.dat contain just one double value 5): >> m = memmapfile('c:\records.dat', 'Format', 'double', 'Writable', true); I'll get reference to m.Data, and read value, value is ok: >> x = m.Data; >> x(1) ans = 5 Now, i'll write new value: >> m.Data(1)=6; Now, i'll read x(1), value is wrong (i read old value): >> x(1) ans = 5 Now, i'll check value reading without reference: >> m.Data(1) ans = 6 So, reference to m.Data (in x variable) was lost! Is it normal?
From: Alexander Plus on 16 Feb 2010 12:03 2 Walter Roberson: Thank you very much!
|
Pages: 1 Prev: how to obtain threshold from histogram of image Next: nest if statement |