'/' in filename causes an issue in Offline Mode
The following error is shown in the console, and no plot is generated.

The error occurred in the previous line (line 77) in plotlyoffline.m.
file_id = fopen(plotly_offline_file, 'w');
The file_id isreturned as -1 if the file was not created for writing. Then when fprintf is called on the next line, it causes the uninterpretable error. All the error from plotly is saying that the file didn't save.
I think what happened is that there is no such directory. Did you create the folder "test" in the pwd? You can check whether it will succeed by the command exist('test', 'dir'). The value should be 7, and if it's not, the call to fprint will fail. Manually create the folder and try again