GREAD

From Jacket Wiki

Jump to: navigation, search
Back to Jacket Function List, Jacket Basics

Read raw byte data from disk to the GPU.

Supported Syntax

v = gread('filename', OFFSET, BYTES);

GFOR Compatibility?

No, do not use inside a GFOR loop.

Description

GREAD reads BYTES amount of data with an OFFSET amount of bytes from the beginning of 'filename'

Example

filename = 'foo.txt';
write_data   = guint32(1:30);
nbytes = gwrite(filename, 0, write_data)
vals = gread(filename, 0, 20)
whos vals;

See Also

GWRITE, GLOAD, GSAVE

Views
Personal tools