month to hour ?
Show older comments
hi
Do you know this code mean? I did not understood this code?
I try to run. This not work. 1 month is 720 hours.
tamb=[25.50 25.70 26.10 26.50 26.60 26.30 26.00 26.00 26.10 26.30 26.10 25.70];%ambient temperature
a=0;
for i=1:1:12
for k=1:1:720
b(k)=tamb(i);
end
a=[a,b];
end
This code is each month tamb's value convert to hour's tamb? is this right? but not work
Answers (1)
Walter Roberson
on 5 Oct 2020
a = repmat(tamb, 720, 1);
The result would be 720 x 12 .
1 Comment
MUNKHBOLOR BAIGALI
on 5 Oct 2020
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!