I've done a simple Matlab class
classdef WavReader
...
and I am trying to use it:
wr = WavReader(in_path);
wr.SetChunkLength( block_size);
while true
out = wr.ReadChunk();
However, this doesn't work: some class properties are "forgotten" before the loop is executed, resulting in an error.
If I defined a class as a handle
class
classdef WavReader < handle
...
all works perfectly well.
Where did I go wrong with the value class?