troubles with ginput function

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.
for example the following 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)

Answers (0)

This question is closed.

Products

Release

R2022b

Tags

Asked:

on 20 Jan 2023

Closed:

dpb
on 20 Jan 2023

Community Treasure Hunt

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

Start Hunting!