altmany / export_fig

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

problem in execution of export_fig command #374

Closed tatireddy91 closed 1 year ago

tatireddy91 commented 1 year ago

Please solve the following issue

export_fig error. Please ensure:

If the problem persists, then please report a new issue.

Error using size Dimension argument must be a positive integer scalar within the indexing range.

Error in export_fig (line 807) sz = size(A,1:2);

Error in VisualiseData (line 60) export_fig (filename, '-m3', '-nocrop')

altmany commented 1 year ago

This was due to a relatively old Matlab release that you are using. It is now fixed in the latest commit (https://github.com/altmany/export_fig/commit/293f8087b62fa4663b4a0d49db4b63ad7ef12eb1).