How to add to chart second X axis with own value?


For example, my main line chart have values: X=[10 20 30 40 50] Y=[0.5 1.5 5 -6 4]. I need to add second X axis, with value [1 2 3 4 5] but but I would like the distance between individual points to be variable. For example, between points 1-2 d=25, between 2-3 d=10. I would like to define this distance freely.
Hollis
Hollis on 20 Oct 2023
Hi @narf, we have moved your question to MATLAB Answers here, where a wider support audience is available to help you:

Tags

No tags entered yet.