Here is the other table Given in class from the Water Level Problem. 2000 I need
ID: 2079554 • Letter: H
Question
Here is the other table Given in class from the Water Level Problem.
2000
I need to solve this using MATLab Code. Please help!!!
2000
2001 2002 2003 2004 2005 2006 2007 January 3680.12 3668.05 3654.25 3617.61 3594.38 3563.41 3596.26 3601.41 February 3678.48 3665.02 3651.01 3613 3589.11 3560.35 3591.94 3598.63 March 3677.23 3663.35 3648.63 3608.95 3584.49 3557.42 3589.22 3597.85 April 3676.44 3662.56 3646.79 3605.92 3583.02 3557.52 3589.94 3599.75 May 3676.76 3665.27 3644.88 3606.11 3584.7 3571.6 3598.27 3604.68 June 3682.19 3672.19 3642.98 3615.39 3587.01 3598.06 3609.36 3610.94 July 3682.86 3671.37 3637.53 3613.64 3583.07 3607.73 3608.79 3609.47 August 3681.12 3667.81 3630.83 3607.32 3575.85 3604.96 3604.93 3605.56 September 3678.7 3665.45 3627.1 3604.11 3571.07 3602.2 3602.08 3602.27 October 3676.96 3663.47 3625.59 3602.92 3570.7 3602.31 3606.12 3601.27 November 3674.93 3661.25 3623.98 3601.24 3569.69 3602.65 3607.46 3599.71 December 3671.59 3658.07 3621.65 3598.82 3565.73 3600.14 3604.96 3596.79 Consider the Water Level problem discussed in class. Modify the program so that the final output looks like the following:Explanation / Answer
data=[3680.12 3668.05 3654.25 3617.61 3594.38 3563.41 3596.26 3601.41
3678.48 3665.02 3651.01 3613 3589.11 3560.35 3591.94 3598.63
3677.23 3663.35 3648.63 3608.95 3584.49 3557.42 3589.22 3597.85
3676.44 3662.56 3646.79 3605.92 3583.02 3557.52 3589.94 3599.75
3676.76 3665.27 3644.88 3606.11 3584.7 3571.6 3598.27 3604.68
3682.19 3672.19 3642.98 3615.39 3587.01 3598.06 3609.36 3610.94
3682.86 3671.37 3637.53 3613.64 3583.07 3607.73 3608.79 3609.47
3681.12 3667.81 3630.83 3607.32 3575.85 3604.96 3604.93 3605.56
3678.7 3665.45 3627.1 3604.11 3571.07 3602.2 3602.08 3602.27
3676.96 3663.47 3625.59 3602.92 3570.7 3602.31 3606.12 3601.27
3674.93 3661.25 3623.98 3601.24 3569.69 3602.65 3607.46 3599.71
3671.59 3658.07 3621.65 3598.82 3565.73 3600.14 3604.96 3596.79]
k=input('enter the height');
y=input('enter the year');
j=y-2000+1;
count =0;
for i=1:1:12
if data(i,j)>=k
count=count+1;
end
end
d=[y;count];
disp(d);