Matlab .fig files under Git version control

2 visualizzazioni (ultimi 30 giorni)
Saurabh Bagalkar
Saurabh Bagalkar il 10 Ott 2017
Commentato: Walter Roberson il 11 Ott 2017
I use Git for all my version control softwares. Regarding .fig files which are binary figure files in Matlab, how can I use them effectively under Git. I cannot see the changes made using
git diff
as they are binary. I am currently using Matlab 2017a. I deal with .fig files a lot and it becomes a pain to modify my figure files on every branch separately due to the changes made. Is there any way to deal with this issue?

Risposte (1)

Sean de Wolski
Sean de Wolski il 10 Ott 2017
You can see some of the changes by comparing revisions in MATLAB Git from within the current folder browser. It's limited in what you can compare but may help.
Out of curiosity, why do you need to store the fig files and not just scripts or functions that reproduce them which would be text?
  3 Commenti
Sean de Wolski
Sean de Wolski il 10 Ott 2017
If I were you, I'd strongly consider the idea of using code to generate the figure and callbacks. See Matt's GUI Examples here:
Walter Roberson
Walter Roberson il 11 Ott 2017
If you are currently using guide, then there is a way to tell it to generate the code that would recreate the .fig

Accedi per commentare.

Categorie

Scopri di più su Interactive Control and Callbacks in Help Center e File Exchange

Tag

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by