Updatemenus Matlab

I’m trying to generate a plot that contains updatemenus from Matlab. Problem is that the buttons / dropdowns don’t even show up. I did not find a Matlab example, so I base this on a Python example. The code is shown below. Any hints on what I do wrong?

% Matlab Version of https://plot.ly/python/dropdowns/#relayout-dropdown

x0 = rand(1,100) + 2;
y0 = rand(1,100) + 2;
x1 = rand(1,100) - 2;
y1 = rand(1,100) - 2;
x2 = rand(1,100) + 1;
y2 = rand(1,100) + 1;

data{1} = struct( …
‘x’, x0, …
‘y’, y0, …
‘mode’, ‘markers’, …
‘marker’, struct(‘color’, ‘#835AF1’));

data{end+1} = struct( …
‘x’, x1, …
‘y’, y1, …
‘mode’, ‘markers’, …
‘marker’, struct(‘color’, ‘#7FA6EE’));

data{end+1} = struct( …
‘x’, x2, …
‘y’, y2, …
‘mode’, ‘markers’, …
‘marker’, struct(‘color’, ‘#B8F7D4’));

cluster0 = {struct(‘type’, ‘circle’, …
‘xref’, ‘x’, ‘yref’, ‘y’, …
‘x0’, min(x0), ‘y0’, min(y0), …
‘x1’, max(x0), ‘y1’, max(y0), …
‘opacity’, .25, …
‘line’, struct(‘color’, ‘#835AF1’), …
‘fillcolor’, ‘#835AF1’)};

cluster1 = {struct(‘type’, ‘circle’, …
‘xref’, ‘x’, ‘yref’, ‘y’, …
‘x0’, min(x1), ‘y0’, min(y1), …
‘x1’, max(x1), ‘y1’, max(y1), …
‘opacity’, .25, …
‘line’, struct(‘color’, ‘#7FA6EE’), …
‘fillcolor’, ‘#7FA6EE’)};

cluster2 = {struct(‘type’, ‘circle’, …
‘xref’, ‘x’, ‘yref’, ‘y’, …
‘x0’, min(x2), ‘y0’, min(y2), …
‘x1’, max(x2), ‘y1’, max(y2), …
‘opacity’, .25, …
‘line’, struct(‘color’, ‘#B8F7D4’), …
‘fillcolor’, ‘#B8F7D4’)};

updatemenus = [{…
struct(‘buttons’, { …

struct(‘label’, ‘None’, …
‘method’, ‘relayout’, …
‘args’, {‘shapes’, []}), …

struct(‘label’, ‘Cluster 0’, …
‘method’, ‘relayout’, …
‘args’, {‘shapes’, cluster0}), …

struct(‘label’, ‘Cluster 1’, …
‘method’, ‘relayout’, …
‘args’,{‘shapes’, cluster1}), …

struct(‘label’, ‘Cluster 2’, …
‘method’, ‘relayout’, …
‘args’, {‘shapes’, cluster2})…
}), …
}];

layout = struct();
layout.title = ‘Test’;
layout.width = 800; % required
layout.height = 650; % required
layout.showlegend = false;
layout.updatemenus = updatemenus;

h_pltly = plotlyfig; % initalize an empty figure object
h_pltly.data = data;
h_pltly.layout = layout;

h_pltly.PlotOptions.FileName = ‘test’;

html_file = plotlyoffline(h_pltly);

web(html_file, ‘-browser’);

I found a related topic: Interactive Legends
However, also there the Matlab version of the script does not run properly.