Plotting a Graph from Data

12 vues (au cours des 30 derniers jours)
SKC1997
SKC1997 le 11 Fév 2019
Commenté : Star Strider le 12 Fév 2019
I'm new to MatLab and I'm modelling a semiconductor laser with the aim of plotting 'L' (quantum well width) against 'Band_Gap'. I've previously tried 'plot(L,Band_Gap);' in the command window but it just gives me a blank graph. How would i go about plotting this?
My current code
codepic.png

Réponses (1)

Star Strider
Star Strider le 11 Fév 2019
Try:
figure
plot(L,Band_Gap)
grid
in your script that calculates those values instead.
  8 commentaires
SKC1997
SKC1997 le 12 Fév 2019
Modifié(e) : SKC1997 le 12 Fév 2019
Thanks for the help, I'll have a fiddle around with it.
Star Strider
Star Strider le 12 Fév 2019
My pleasure.
If my Answer helped you solve your problem, please Accept it!

Connectez-vous pour commenter.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by