graphic error while plotting 3D

2 views (last 30 days)
Eisa Alyaqoub
Eisa Alyaqoub on 9 Jul 2019
Commented: Rik on 18 Sep 2020
Here is my code:
close all
addpath('C:\Users\e_m20\MatLab_files\Dr. Sung_research\Preprocessing\nurbs_toolbox');
addpath('C:\Users\e_m20\MatLab_files\Dr. Sung_research\Preprocessing');
model = loadxcat_full('xcat_nurbs.nrb');
figure(12),
hold on;
num = 1;
N = 3*5+1;
ulen = length(model(num).uknots);
vlen = length(model(num).vknots);
nrbplot(model(num).nurbs,[ulen vlen]*N);
Here is the erro I got everty time.
Warning: Error occurred while executing the listener callback for event WindowMouseMotion defined for class matlab.ui.Figure:
Error using vertcat
Out of memory. Type "help memory" for your options.
Error in surf2patch (line 72)
f = [q q+m q+m+1; q q+m+1 q+1];
Error in matlab.graphics.chart.interaction.dataannotatable.SurfaceHelper>localGetNearestVertex (line 199)
[f, verts] = surf2patch(xdata, ydata, zdata, 'triangles');
Error in matlab.graphics.chart.interaction.dataannotatable.SurfaceHelper.getNearestPoint (line 43)
index = localGetNearestVertex(hObj, position);
Error in matlab.graphics.chart.primitive.Surface/doGetNearestPoint
Error in matlab.graphics.interaction.actions.Linger/motionCallback
Error in matlab.graphics.interaction.actions.Linger
Could you please expline why I am getting this error ?
Thank you,
  5 Comments
Amey Khobragade
Amey Khobragade on 18 Sep 2020
Error in matlab.graphics.interaction.actions.Linger/motionCallback
Error in matlab.graphics.interaction.actions.Linger
Warning: Error occurred while executing the listener callback for event WindowMouseMotion defined for
class matlab.ui.Figure:
Error using timer/start (line 87)
Attempt to execute SCRIPT cell as a function:
C:\Users\Amay\OneDrive\Documents\MATLAB\cell.m
Error in matlab.graphics.interaction.actions.Linger/startTimer
Error in matlab.graphics.interaction.actions.Linger/motionCallback
Error in matlab.graphics.interaction.actions.Linger
Warning: Error occurred while executing the listener callback for event WindowMouseMotion defined for
class matlab.ui.Figure:
Error using timer/start (line 87)
Attempt to execute SCRIPT cell as a function:
C:\Users\Amay\OneDrive\Documents\MATLAB\cell.m
Error in matlab.graphics.interaction.actions.Linger/startTimer
Error in matlab.graphics.interaction.actions.Linger/motionCallback
Error in matlab.graphics.interaction.actions.Linger
Warning: Error occurred while executing the listener callback for event WindowMouseMotion defined for
class matlab.ui.Figure:
Error using timer/start (line 87)
Attempt to execute SCRIPT cell as a function:
C:\Users\Amay\OneDrive\Documents\MATLAB\cell.m
Error in matlab.graphics.interaction.actions.Linger/startTimer
Error in matlab.graphics.interaction.actions.Linger/motionCallback
Error in matlab.graphics.interaction.actions.Linger
i have got this eroro now wht to do
Rik
Rik on 18 Sep 2020
@Amey, what to do? Have a read here and here.

Sign in to comment.

Answers (0)

Categories

Find more on Graphics Object Programming in Help Center and File Exchange

Products


Release

R2018b

Community Treasure Hunt

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

Start Hunting!