Effacer les filtres
Effacer les filtres

Matlab - Undefined function 'getViewport' for input arguments of type 'handle.handle'

2 vues (au cours des 30 derniers jours)
MDias
MDias le 24 Jan 2022
Modifié(e) : Guilherme le 10 Jan 2023
I'm trying to use a gui and get this error when trying to access a drop down menu. I'm on windows with matlab 2019b.
Honestly I have no idea whats going on. The function exists and is on the matlab path. Moreover, the exact same code works on a mac with matlab 2015b and on another windows machine with matlab 2019b.
Full error message:
Undefined function 'getViewport' for input arguments of type 'handle.handle'
Error in csc_eeg_plotter>fcn_montage_setup (line 2380)
jtable = jscroll.getViewport.getView;
Error using uiwait (line 81)
Error while evaluating Menu Callback.
  3 commentaires
Guilherme
Guilherme le 10 Jan 2023
I've stepped onto a similar problem. A code works on a friend machine but not on mine. If I find a solution I'll come back here.
Guilherme
Guilherme le 10 Jan 2023
Modifié(e) : Guilherme le 10 Jan 2023
Hi @MDias and @Mark Eigenraam. I'm not sure if you're still facing this issue but I could work it around from here. On my case there was a conflicting findjobject function on the path. I've found it with
which findjobject
This conflicting version was older than another one that I had. If I was on the folder of the code I wanted to run it worked flawlessly since it would get the function on the folder. However, if I was on the wrong folder it would not work as the one with the highest priority on the path was uncompatible with the Java Version on my machine. I've copied then the newer findjobject to the folder of the older one and now I can run my application from anywhere.
It would be nice if you could check the Java Version of your machine as this may be linked to the fact of it working on one computer and not in the other.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Environment and Settings 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