Plotting a Graph from Data

9 次查看(过去 30 天)
SKC1997
SKC1997 2019-2-11
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

回答(1 个)

Star Strider
Star Strider 2019-2-11
Try:
figure
plot(L,Band_Gap)
grid
in your script that calculates those values instead.
  8 个评论
SKC1997
SKC1997 2019-2-12
编辑:SKC1997 2019-2-12
Thanks for the help, I'll have a fiddle around with it.
Star Strider
Star Strider 2019-2-12
My pleasure.
If my Answer helped you solve your problem, please Accept it!

请先登录,再进行评论。

标签

Community Treasure Hunt

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

Start Hunting!

Translated by