2 Answers

As far as I can tell Plecs does not seem to support "csvwrite", "dlmwrite" or "xlswrite" at this time, "save" however does work. A command as below will save your data without headers in text format to a file. If you open the generated file in a text editor and find/replace all space (" ") characters with commas (",") excel will correctly load the file as csv.

Are you generating the data from within the simulation script or using signal condition blocks in your model? In the case of the latter, have you tried using the To File block in PLECS' System component library? It can automatically generate a .CSV file for you.