thanks for the function. This is really missing in Matlab.
A couple of thoughts that might make it even better:
The ability to plot the lowest hierarchy/dimension as different box-color, or maybe second y-axis. This is closely related to the second idea:
The ability to plot 2-y axis, differentiated by color as well. Many applications have two different variables you might wanna show.
3. It would be more usable if one could simply feed it a table. The new 'table' data type looks like it would for great with this.
Can you please provide an example of initializing using a structure that has mu and sigma. The code looks for this:
if isstruct(init) % initialize with a model
R = expectation(X,init);
I wish to know how to initialize values in this init structure. Thanks so much for this implementation. It really is a blessing