MATLAB: I have a graph for which X axes has Raw number till 10000000, I want to ask how can I change to time frame of 60ms

color

I have made a graph using Oscilloscope.I got data as .csv file which has raw number till 10000000.
Now I am doing project which should have X axes in the frame of 60 ms so some how like that .
I have added that graph in this
This is the code
function [] = T1(W_C00,W_P00,WO_C00,WO_P00,n1,n2,n3,n4)
%n1 and n2 scaling the x axis of a1 and a2 respectively
%a1 and a2 are the vectors which u need to import into matlab (only the data)
x1=length(W_C00);
%x1 no of points in a1 vector


y1=W_C00;
%values of a1 vector similarly with a2
x2=length(W_P00);
y2=W_P00;
%For a3 and a4
x3=length(WO_C00);
%x1 no of points in a1 vector
y3=WO_C00;
x4=length(WO_P00);
%x1 no of points in a1 vector
y4=WO_P00;
plot((1:x1)/n1,y1,(1:x2)/n2,y2,(1:x3)/n3,y3,(1:x4)/n4,y4);
end

Best Answer

You should pass in whatever n1 value is needed so that length(W_C00)/n1 corresponds to 60 milliseconds.