plotyy does not what i want...
이전 댓글 표시
Hello there,
I want to plot 2 graphs with different lengths in one figure.
maxidx_smooth2 is a 484x1 vector time_climate_h is a 893x1 vector temp_climate is a 893x1 vector
I tried 'plotyy' but I don´t come along with the 'X' arguments, somehow MATLAB rejects this but for what reason?
% plotyy(time_climate_h,maxidx_smooth2,time_climate_h,temp_climate)
RESULTS IN: "Error using plot Vectors must be the same lengths."
But why? I thouht this is the reason ... plot two different vectors in one plot with different lenghts?
Thanks,
채택된 답변
추가 답변 (1개)
You could not even draw one of these diagrams using the standard plot.
- maxidx_smooth2 is a 484x1 vector
- time_climate_h is a 893x1 vector
==>
plot(time_climate_h, maxidx_smooth2) % ERROR
X and Y data need the same number of elements.
카테고리
도움말 센터 및 File Exchange에서 Combine Multiple Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!