Specific interval of imported data

Hi,
I want to sort out a specific interval in my imported data. More specifically i want to use the data between row 24 - 48 and here's how far i've come:
import1=zeros(24,1);
for j=1:36
for i=[24:48]
import1(i,j)=allahus_2017till2021(i,j);
end
end
Now when i want to plot this, i get the numbers before 24 (0-24) as well as zeroes, see picture.
How do i write so that it starts from 24 and end at 48?
Best regards

Answers (1)

KSSV
KSSV on 7 Mar 2022
Edited: KSSV on 7 Mar 2022
import1 = allahus_2017till2021(24:48,:);

1 Comment

That works, thank you!
But when i type that way and plot it, the x-axis will show 0-24 although it is the data between 24 - 48. Is there any way i can make the X-axis show the numbers of the interval (24 - 48) instead of amount of datapoints?
Cheers

Sign in to comment.

Categories

Products

Release

R2021a

Asked:

on 7 Mar 2022

Commented:

on 7 Mar 2022

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!