Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

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

1 vue (au cours des 30 derniers jours)
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,:)
  1 commentaire
Star Strider
Star Strider le 3 Fév 2020
It appears that the code you wrote is sufficient.
What do you want the loop to do?

Réponses (2)

Hannes Arnar
Hannes Arnar le 3 Fév 2020
Modifié(e) : Hannes Arnar le 3 Fév 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 le 3 Fév 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. :)

Cette question est clôturée.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by