Sometimes my 2-D plots won't show up.
Show older comments
My 2-D plots will sometimes not plot. Sometimes they work, and sometimes they won't plot, and I can't figure out why. I'm very new to Matlab so it's probably something basic that i'm not doing correctly. The "New Figure option" in the Plots menu is checked.
4 Comments
Torsten
on 1 Oct 2022
If it's a problem with your code, we cannot help since you didn't include it.
If it's a problem with your graphics card, we cannot help anyhow.
Torsten
on 2 Oct 2022
@John comment moved here:
Here's the code I'm using: I got no errors or warnings (green check mark). How can i check if it's a graphic card issue? Also I'm connecting to matlab through a remote server since I don't have the software on my computer. I'm new to matlab so any help is much appreciated!
Fb0=0.5465;
Na0=1544;
K=8.33*10^-5;
x=0:36000:360000;
y=K*(1+(Fb0*x/Na0))-realsqrt(((K*(1+Fb0*x/Na0))^2)-4*(K-1)*K*Fb0*x/Na0)/2*(K-1);
plot(x,y);
drawnow;
Torsten
on 2 Oct 2022
Replace
y=K*(1+(Fb0*x/Na0))-realsqrt(((K*(1+Fb0*x/Na0))^2)-4*(K-1)*K*Fb0*x/Na0)/2*(K-1);
by
y=K*(1+(Fb0*x/Na0))-realsqrt(((K*(1+Fb0*x/Na0)).^2)-4*(K-1)*K*Fb0*x/Na0)/2*(K-1);
John
on 2 Oct 2022
Accepted Answer
More Answers (0)
Categories
Find more on Graphics Performance in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!