how to solve low-level graphics?

조회 수: 3 (최근 30일)
ryunosuke tazawa
ryunosuke tazawa 2021년 11월 12일
답변: Naga 2025년 1월 16일
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));

답변 (1개)

Naga
Naga 2025년 1월 16일
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:

카테고리

Help CenterFile Exchange에서 Graphics Performance에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by