janklab / matlab-bench

Some utilities for exploring Matlab's behavior
MIT License
32 stars 6 forks source link

Structure function #3

Closed memming closed 5 years ago

memming commented 10 years ago

Also test for function handles within a structure. It turns out it just adds structure access time, so this might be unnecessary, but for the curious it could be useful information.

s = struct();
s.a = @()[];
s.b = @nop;
apjanke commented 5 years ago

I'm going to pass on this. Like you say, I think it's just testing structure field access time, which is a little out of scope for this tool right now. Thanks for the PR, though!