how to solve low-level graphics?

5 views (last 30 days)
ryunosuke tazawa
ryunosuke tazawa on 12 Nov 2021
Answered: Naga on 16 Jan 2025
I want to slove the error about low-level graphics.
Could you help me?
Theta_Theory = linspace(D2, D1, 10000);
Velocity_Theory = linspace(-100,0,10000);
figure(1);
[Theta_Theory, Velocity_Theory] = meshgrid(Theta_Theory, Velocity_Theory);
x1 = sin(Theta_Theory);
y1 = -cos(Theta_Theory);
T = sqrt(2*abs(y1)/9.8);
target = 10;
S_z = x1 + abs(Velocity_Theory.*cos(Theta_Theory)).*T.';
z = -abs(S_z -target);
h = pcolor(Theta_Theory, Velocity_Theory,z);
shading interp
set(h,'EdgeColor','none','linestyle','none');
colorbar;
colormap(jet(256));

Answers (1)

Naga
Naga on 16 Jan 2025
The error you're encountering related to low-level graphics might be due to several factors, including system-specific configurations, outdated graphics drivers, or limitations in your current hardware. However, in the context of your MATLAB code, there might be specific issues contributing to this error:
  1. Large Data Sets: Using 'linspace' to create arrays with 10,000 elements and then a 10,000x10,000 'meshgrid' is computationally demanding and may exceed your hardware capabilities.
  2. Graphics Rendering: 'pcolor' with shading interp and no edges ('EdgeColor','none') can stress the graphics engine, particularly on systems with limited graphics power.
Consider optimizing your data size or checking your graphics hardware and drivers.
Also consider following the debugging steps provided in the following MATLAB Answer:

Community Treasure Hunt

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

Start Hunting!