필터 지우기
필터 지우기

I 2-D plot of y with specific x

조회 수: 2 (최근 30일)
Eric Elharer
Eric Elharer 2018년 8월 11일
댓글: Star Strider 2018년 8월 11일
Hi trying to pot PSNR values at specific exposur time psnr_val=[22 24 29 32 33] exp_t =[0.01 0.1 1 10 100]

채택된 답변

Star Strider
Star Strider 2018년 8월 11일
I am guessing here as to what you want.
Try this:
psnr_val=[22 24 29 32 33];
exp_t =[0.01 0.1 1 10 100];
figure
semilogx(exp_t, psnr_val)
grid
xlabel('exp\_t')
ylabel('psnr\_val')
Use plot instead of semilogx if you want a linear x-scale.
  댓글 수: 3
Eric Elharer
Eric Elharer 2018년 8월 11일
and what if I want use vaues of x which are not logarithmic scale is used for t-axis such as exp_t =[0.1 20 150 400 4000]
Star Strider
Star Strider 2018년 8월 11일
As always, my pleasure.
If your x values are not logarithmic, use either plot or semilogx, depending on the result you want.
Please feel free to experiment.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by