I am new in MATLAB and I need a help to calculate resistance growth for a battery for one year and then estimation how many years does need to reach 200% of its initial value. If I have an equation for it in for loop for different uses a day, how can apply those uses in minutes to 365 days?
For example,
for i=1:365 %one year
for j=1:720 % using the battery for the half of day (in minutes)
time_1= ??? % here is the place to link i and j ????
R_1= x*time_1;%resistance growth for the first use
end for k=721:1440 % using the battery for the half of day (in minutes) time_2= ???? %here is the place to link i and k
R_2= x*time_2;%resistance growth for the second use
endend
Any idea which helps will be appreciated. Thank you in advance!
Best Answer