Info

This question is closed. Reopen it to edit or answer.

for loop for this ? I want to create a for loop for this that runns throw the data and create arrays like this.

1 view (last 30 days)
close all; clear all; clc; % Vill her lata hoppa á 50 dögum , skoða þetta B
data1 = xlsread('dataCompanyprices','Sheet1','W4:AP1203');
A = data1(1:5,:)
B = data1(6:10,:)
C = data1(11:15,:)

Answers (2)

Hannes Arnar
Hannes Arnar on 3 Feb 2020
Edited: Hannes Arnar on 3 Feb 2020
I want to let the loop jump throw the data set on some days lets say mabye 25 days , So the dataset is 1200 * 20 .
By that I want to make 1200 / 25 = 48 matrixes.
So I want 48 matrixes that include thoes 25 days with the data. :)

Hannes Arnar
Hannes Arnar on 3 Feb 2020
I want to let the loop jump throw the data set on some days lets say mabye 25 days , So the dataset is 1200 * 20 .
By that I want to make 1200 / 25 = 48 matrixes.
So I want 48 matrixes that include thoes 25 days with the data. :)

This question is closed.

Tags

Community Treasure Hunt

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

Start Hunting!