Clear Filters
Clear Filters

Info

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

Hi everyone, i need help. When I run my script, i don't get an error message all I get from the command line is 'Lab 1: no data', what might be the problem with my script?

1 view (last 30 days)
for iLength = 1:42
if iLength < 10
label = sprintf('0%s',num2str(iLength));
else
label = num2str(iLength);
end
fn = sprintf('%s.txt',label);
A = load(fn);
[m n] = size(A);
event_length = iLength + 7;
for ievent = 1:event_length
if ievent < 10
event_label = sprintf('0%s',num2str(ievent));
else
event_label = num2str(ievent);
end
ES = zeros(m,n)
for i = 1:m
start_date = num2str(A(i));
% gn = sprintf('%s%s',start_date,event_label);
gn = sprintf('events/%s/mslp_%s_%s',label,start_date,event_label);
B = load(gn);
ES = ES + B;
end
EM = ES./m;
fn = sprintf('events/mslp_comp_%s.%s',start_date,event_label);
dlmwrite(fn,EM)
end
end

Answers (0)

This question is closed.

Tags

Community Treasure Hunt

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

Start Hunting!