Mathlab doesn't show Graph
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Can someone tell me why my matlab doesn't show the graph?I'm getting the results i want but it doesn't show the graph.
Thanks !
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1689677/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1689682/image.jpeg)
0 comentarios
Respuestas (1)
SACHIN KHANDELWAL
el 28 de Mayo de 2024
If you're trying to see a graph in MATLAB but nothing shows up, it's probably because MATLAB typically draws lines connecting multiple points, and you've only plotted one point.
Without a second point to connect to, there's no line to display. To see your single point on the graph, you can tell MATLAB to use a specific symbol, like a circle ('o'), to mark the spot. Here's how you can do it in code:
masa = 2;
densitate = 0.1333;
plot(masa, densitate, 'o'); % This will plot a single point with a circle marke
Hope it helps!
0 comentarios
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!