Effacer les filtres
Effacer les filtres

how can resolve error message while opening .fig file from old virsion..message display is 'Error using open (line 146) x and y must be the same size'

4 vues (au cours des 30 derniers jours)
how can resolve error message while opening .fig file from old virsion..message display is 'Error using open (line 146) x and y must be the same size'
  3 commentaires
pravin patel
pravin patel le 19 Mar 2020
yes,try to load .fig which is made in MATLAB2014A, and want to load in MATLAB2019B.
Walter Roberson
Walter Roberson le 19 Mar 2020
Can you attach the .fig and associated .m file for testing?

Connectez-vous pour commenter.

Réponse acceptée

Aman Vyas
Aman Vyas le 20 Mar 2020
Hi,
This type of error can be resolved in many ways but it will depend upon what values of x and y you have available as per your code.
Try using the following commands:
size(x)
size(y)
in order to get the size of the x and y.
As per me, these might be cases for your issue:
A) There can be a situation one image has , say for example a*b size while other image's size is b*a , so in this particular case transpose function would help.
B) If you have some random sizes available try purposely adding or repeating certain coordinates so that you get the matched size.
So, in short, size command will help you give insight as to what next steps you need to follow.
I hope this helps you!
  1 commentaire
Walter Roberson
Walter Roberson le 20 Mar 2020
The error is occurring at the time of loading the figure, so possibly the problem is occurring in a CreateFcn callback, including possibly one that was coded as a character vector instead of a function handle (as GUIDE used to do...)
This is going to be tricky to debug for anyone who does not have a fair bit of experience with MATLAB graphics. It would help a lot if we had the fig and associated code file.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Interactive Control and Callbacks dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by