Output to vector

  • Follow


Below is my code for arbitrage analysis on DIA and the DOW

I need the x and the i to output to seperate vectors.

If someone can please help me I cant find how to do this anywhere.

clear
clc

load DIADOW.m

DIA = DIADOW(:,1);
DOW = DIADOW(:,2);

N = length(DIA);
tol = 20;
for i = 1:N
    if abs(DIA(i)*100-DOW(i))> tol
        x = DIA(i)*100 - DOW(i)
        time = i;
    end    
    
end
0
Reply Nick 12/5/2009 1:20:27 AM


0 Replies
266 Views

(page loaded in 0.013 seconds)

Similiar Articles:











7/24/2012 8:42:07 AM


Reply: