查看单个帖子
旧 2019-11-25, 20:41   #1
poster
高级会员
 
注册日期: 2019-11-21
帖子: 3,006
声望力: 66
poster 正向着好的方向发展
默认 how to make multiple graphs with varying x-axis - Matlab

I need to plot multiple graphs in the same y-axis but the x-axis is a bit tricky:
Assuming it goes from 0 to a, increasing by one, it needs to have an overall of (a-1) different intervals; each one of them should finish at a, but it also have to have a different initialisation. Only the first starts by 0, while each next starts by the previous plus one, as in the shape below. Of course, the 2 dashed lines I used to make as clear as I could, are not necessary.



enter image description here





More answer...
poster 当前离线   回复时引用此帖