Something wrong in the plotting
Ältere Kommentare anzeigen
Hi every one,
why when I run the following code:
V1 = @(r,w) -acosh(10*(w/(1600*r + 21))^(1/2))/20000000000
V2 = @(r,w) acosh(10*(w/(1600*r + 21))^(1/2))/20000000000
% Define function to be integrated
fun = @(x,r,w)0.0018./((w./((cosh(10^10.*x./0.5)).^2)-(r.*16+0.21)).^0.5);
www = @(w,r)5.124+4*10^-6.*(exp(-215.6*0.5*(w.^(1/2)-(r.*16+0.21).^0.5))./(integral(@(x)fun(x,r,w),V1(r,w),V2(r,w))))-(exp(-37.45.*r).*(70.31));
fimplicit(www,[0 5 0 0.075],'MeshDensity',500, 'LineWidth',1.5),grid
I get something bizzare behind the actual plot desired, see the image attached! the bizzare thing is this dotted not continuous plot behind the smooth desired plot! how can I remove it? please!

Antworten (1)
Only the continuous line is visible in Release R2022a.
V1 = @(r,w) -acosh(10*(w./(1600*r + 21)).^(1/2))/20000000000;
V2 = @(r,w) acosh(10*(w./(1600*r + 21)).^(1/2))/20000000000;
% Define function to be integrated
fun = @(x,r,w)0.0018./((w./((cosh(10^10.*x./0.5)).^2)-(r.*16+0.21)).^0.5);
www = @(w,r)5.124+4*10^-6.*(exp(-215.6*0.5*(w.^(1/2)-(r.*16+0.21).^0.5))./(integral(@(x)fun(x,r,w),V1(r,w),V2(r,w))))-(exp(-37.45.*r).*(70.31));
fimplicit(www,[0 5 0 0.075],'MeshDensity',500, 'LineWidth',1.5),grid
6 Kommentare
Abdallah Qaswal
am 6 Jun. 2022
Abdallah Qaswal
am 6 Jun. 2022
David Meissner
am 6 Jun. 2022
I'm also using release R2022a and it works fine for me.
The first thing that comes to mind is something is up with your graphics.
You might try this. (I'm assuming your using a windows machine here)
- Restart your computer.
- Open MATLAB, and type this in the command window:
fig = figure;
info = rendererinfo(gca)
info.GraphicsRenderer
3. If the returned object, info, has the property "GraphicsRenderer:" set to 'OpenGL Hardware', then make sure your hardware graphics driver is up to date which is vendor specific. (see: https://www.mathworks.com/help/releases/R2022a/matlab/creating_plots/resolving-low-level-graphics-issues.html)
3b. If the above commands don't work for you, you might have an older version of MATLAB, so try this...
info = opengl('data')
info.Software
If info.Software returns 0 or false, then you're using the hardware mode, verify your driver is up to date and/or move onto step 4.
4. If you still have the same issue, or tried updating the driver and you just gave up (no worries), type this in the command window to switch from hardware graphics to software graphics mode (for the current matlab session).
matlab -softwareopengl
5. If that works, set MATLAB to always use software mode by typing this in the command window
opengl('save','software')
6. Restart MATLAB.
7. If all that doesn't work, go back to the link in step 3, and go through it slowly and methodically, and see what else you can try.
8. If that doesn't work, call MathWorks Technical Support 508-647-7000
Abdallah Qaswal
am 7 Jun. 2022
Torsten
am 7 Jun. 2022
And why don't you use the new version ?
Or do you only refer to the graphics created with MATLAB online in R2022a ?
Abdallah Qaswal
am 7 Jun. 2022
Kategorien
Mehr zu Graphics Performance finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
