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

export_fig is not working with renders and native after the variable string #341

Closed RashmiV19 closed 3 years ago

RashmiV19 commented 3 years ago

when a loop is running to generate variable names of the file, if we use renders or native (words) export_fig is not working.

exportfig(sprintf('E:/new results/%d%d_tht.png', ks,kr)) -opengl

altmany commented 3 years ago

This is not a problem with export_fig - it's a problem in your understanding of Matlab. You cannot mix command and function syntax in the same expression: https://www.mathworks.com/help/matlab/matlab_prog/command-vs-function-syntax.html

RashmiV19 commented 3 years ago

Could you please tell me? How we can use renders along with variable string?

With Regards,

Rashmi Vishraj

Research Scholar,

Department of Computer Sc. & Engg.

University Institute of Engineering & Technology,

Panjab University, Chandigarh, India

On Thu, Aug 26, 2021 at 12:00 PM Yair Altman @.***> wrote:

Closed #341 https://github.com/altmany/export_fig/issues/341.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/altmany/export_fig/issues/341#event-5210836611, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFAP6IVNI6VEHM2DOA6WB6TT6XNQPANCNFSM5C2KMTWQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .