altmany / export_fig

A MATLAB toolbox for exporting publication quality figures
BSD 3-Clause "New" or "Revised" License
1.28k stars 368 forks source link

string error while updating #381

Closed geraldo-reboucas closed 1 year ago

geraldo-reboucas commented 1 year ago
>> export_fig("-update")
Downloading latest version of export_fig from https://github.com/altmany/export_fig/archive/master.zip...
Extracting C:\Users\XYZ\AppData\Roaming\MathWorks\MATLAB Add-Ons\Collections\export_fig\2023-11-29.zip...
Successfully installed the latest export_fig version in C:\Users\XYZ\AppData\Roaming\MathWorks\MATLAB Add-Ons\Collections\export_fig
Error using regexprep
The 'STRING' input must be either a char row vector, a cell array of char row vectors, or a string array.

Error in export_fig>parse_args (line 2089)
        options.name = regexprep(options.name,'[*?"<>|]+','-'); %remove illegal filename chars, but not folder seperators!

Error in export_fig (line 424)
    [fig, options] = parse_args(nargout, fig, argNames, varargin{:});

MATLAB R2023b export_fig v3.40 Windows

altmany commented 1 year ago

Fixed. Either update export_fig, or keep using the current version but specify an output filename