필터 지우기
필터 지우기

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

조회 수: 2 (최근 30일)
MDias
MDias 2022년 1월 24일
편집: Guilherme 2023년 1월 10일
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
Guilherme
Guilherme 2023년 1월 10일
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 2023년 1월 10일
편집: Guilherme 2023년 1월 10일
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.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Environment and Settings에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by