Filter löschen
Filter löschen

Troubles with ginput() function

11 Ansichten (letzte 30 Tage)
Radu Trimbitas
Radu Trimbitas am 20 Jan. 2023
Beantwortet: Animesh am 7 Mär. 2023
I have troubles with ginput under Windows 11. A lot of MATLAB code which works well under Windows 10 does not function correctly under Windows 11. What can I do? I suppose this is not a MATLAB problem.
  3 Kommentare
Radu Trimbitas
Radu Trimbitas am 20 Jan. 2023
Bearbeitet: Adam Danz am 20 Jan. 2023
for example the following short and simple code
close all
axis([0,1,0,1])
[x,y]=ginput();
m=length(x)-1;
tn=0:m;
t=linspace(0,m,500);
xg=spline(tn,x,t);
yg=spline(tn,y,t);
plot(x,y,'o',xg,yg)
dpb
dpb am 20 Jan. 2023
Of course nobody w/o Win11 can do anything to even try to reproduce an issue but you don't help by even describing symptoms...
Is this new; after an upgrade or either MATLAB or Windoes, what kind of system, video driver, etc., etc., etc., ...

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Animesh
Animesh am 7 Mär. 2023
Hello,
If you are experiencing issues with the “ginput” function in MATLAB under Windows 11, there are a few things you can try:
  • Check your MATLAB version: Make sure you are using a version of MATLAB that is compatible with Windows 11. MATLAB 2021a and later versions are compatible with Windows 11.
  • Update your graphics driver: The “ginput” function relies on your graphics hardware and driver to function correctly. Updating your graphics driver to the latest version may resolve the issue.
  • Disable scaling for high DPI displays: Windows 11 may automatically scale the size of the display on high DPI displays, which can cause issues with the “ginput” function. You can try disabling display scaling by right-clicking on the MATLAB shortcut and selecting "Properties", then selecting the "Compatibility" tab and checking the box for "Disable display scaling on high DPI settings".
  • Reinstall MATLAB: If all the above-mentioned steps fail, then you can reinstall MATLAB and check if this resolves the issue.

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange

Tags

Produkte


Version

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by