Plotting a Graph from Data

조회 수: 6 (최근 30일)
SKC1997
SKC1997 2019년 2월 11일
댓글: Star Strider 2019년 2월 12일
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!

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Eigenvalue Problems에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by