Lplot error vector must be the same length
이전 댓글 표시
Hi,
I am having trouble with a in house script I use to plot the average spectrum of my Raman spectroscopy data.
Please find attached a copy of the script and error I am getting. Strange given it was working fine yesterday.
Please help! I have a presentation on Monday :(\
Thanks,
Ewan
댓글 수: 3
KALYAN ACHARJYA
2019년 8월 9일
편집: KALYAN ACHARJYA
2019년 8월 9일
Please share
>>whos shift
and
>>whos PC3_48DMSO20
Ewan Hislop
2019년 8월 9일
KALYAN ACHARJYA
2019년 8월 9일
You are passing these two variable to the lplot function.
답변 (1개)
Athul Prakash
2019년 8월 12일
0 개 추천
Hi Ewan,
The plot function here (called inside lplot) is trying to plot shift on the x-axis vs PC3_48DMSO20 on the y-axis. Hence, these vectors need to be of the same length. Please check their lengths using the size() function.
You may need to trim one of these variables, depending on what they contain, to plot it against the other as needed.
As mentioned by others, if you could share the output of whos shift and whos PC3_48DMSO20, the community could help you better.
Good Luck!
카테고리
도움말 센터 및 File Exchange에서 Polar Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!