Multiple x-axes one above the other in MATLAB
I have three time series of data for different variables, Var1, Var2, and Var3. Although the lengths of these data sets are different, their start and end times are the same. Consequently, one can plot one over the other (one may check this with the help of the hold on command). Now I use the command plot(Time4Var1,Var1) to plot the variable Var1. clc; clear; close all; Time4Var1=(datetime(2021,11,24,1,4,0:60000))'; xx=(linspace(2,65,length(Time4Var1)))'; Var1=sin(xx).*log(xx).*tand(xx); Time4Var2=datetime(2021,11,24,1, (4:25:1010)', 00); Var2=bessely(1,linspace(2,23,length(Time4Var2)))'; Time
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.