Question

time of low tide to the d window (40 average tide level, section and put Create a new m-file called exaal.a. Use a %% line to start your header Exami and your name on the first line. Use % lines for Author: Course Exam: Date and Description: Then start a new section with %%. Asyou build your oode: Make sure to break up the code into kgical sections using X%. Include comments using %. You should have about one line of % comments fe every line of code. Load the data from the esv data sheet (tide level data.esv) posted in D2L into MATLAB asing your script (not using the import wizard or using copy and paste). This csv file contains the tide level (water level) in meters over a 24 hour period in Vancouver, WA on November 1st, 2017 . Create two new variables called tine.in.hrs and vater level. Where tine.in hrs is the first column of the cav file and vater.level is the second column of the .cev file. Plot the Water Level vs. Time. Ensure you use the proper variable on the proper axis. Make the line on your plot blue, dashed and thick (LineWidth of 2). Include axis labels. The units of water level is meters, units of time is hours. Include a title (Tide Level in Vancouver, WA on Nov 1, 2017) and a legend on your plot. Limit the x-axis to go from 0 hours to 24 hours . Calculate the average vater.level. . Find the water level at low tide (minimum vater level). . Find the time that corresponds to low tide (the minimum water vater level). Do this programmatically (not by manually searching). You are answering the question When is low tide? e Upload yur hml-le to the Exam 1 sploads folder on D21 Upload the full resolution n image file (your Waber Level . Time curve) to the Exam 1 splods folder on D2L Ere Bring this sheet and your sheet of motes up to your instructor Your plot should look something like the plot below
0 0
Add a comment Improve this question Transcribed image text
Answer #1

%% Exam1 - Name:xxxxxxxx
% Author:
% Course:
% Exam:
% Date:
% Description:
%% Loading Data
% Loading the data from the .csv datasheet
Data=xlsread('Tide_level_data.csv');

% Creating two variables for time (in hrs) and water level (in mts)
% time is in the first column of the csv file
time_in_hrs=Data(:,1);  
% water level is in the first column of the csv file
water_level=Data(:,2);   
%% Plotting Data
% plotting water level vs time
figure; % creating a figure to plot the waveform
% plotting the line with blue, dashed with a thickness of 2
plot(time_in_hrs,water_level,'b-','linewidth',2);
% axis properties like grid, labels, title and legend
grid on; grid minor; % using a minor grid in the plot
xlabel('Time \it(hrs)'); % defining xlabel
ylabel('water level \it(mts)'); % defining ylabel
% defining title for the plot
title('Tide Level in Vancouver, WA on Nov 1, 2017');
legend('Water level vs Time'); % defining legend
xlim([0 24]); % limits the x-axis from 0 to 24 hours
%% statistics
% Calulating the average water level
avg_water_level=mean(water_level);
% Calculating the minimum water level and the corresponding time
[min_water_level,min_Loc_time]=min(water_level);
min_time=time_in_hrs(min_Loc_time);
% answering the question 'when is low tide'
fprintf('Low tide is occured at %d hrs\n',min_time);

Add a comment
Know the answer?
Add Answer to:
time of low tide to the d window (40 average tide level, section and put Create...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • (+20) In a tidal river, the time between high tide and low tide is 6 hours....

    (+20) In a tidal river, the time between high tide and low tide is 6 hours. At high tide the depth of the water is 18 feet, while at low tide the depth is 6 feet. Assume the water depth is a trigonometric function of time. Assume there is a high tide at noon. a. (+4) Fill in the table for one period assuming a high tide at 12:00 noon: Estimate the t, time elapsed in h, depth of the...

  • Project 3 Instructions 1. Due Date & Time: 09-26-2020 at 11:59 PM WHAT TO SUBMIT Submit...

    Project 3 Instructions 1. Due Date & Time: 09-26-2020 at 11:59 PM WHAT TO SUBMIT Submit 1 zip file containing 4 files below to iLearn by the deadline. [30 points] ● 3 JAVA Files: TableBmiPro.java, MyOwnIdea.java. DiceRoll.java [24 points] ● 1 File: Make a document that shows the screen captures of execution of your programs and learning points in Word or PDF. Please make sure you capture at least 2 executions for 1 program, so 6 screen captures and one...

  • import java.util.*; /** Description: This program determines the average of a list of (nonnegative) exam scores....

    import java.util.*; /** Description: This program determines the average of a list of (nonnegative) exam scores. Repeats for more exams until the user says to stop. Input: Numbers, sum, answer Output: Displays program description Displays instruction for user Displays average Algorithm: 1. START 2. Declare variables sum, numberOf Students, nextNumber, answer 3. Display welcome message and program description 4. DOWHILE user wants to continue 5. Display instructions on how to use the program 6. Inititalize sum and number of student...

  • in c++ please Page 1 of 3 (PRO) Project Assignment Instructions Last Charged: 6/1/2020 Read and...

    in c++ please Page 1 of 3 (PRO) Project Assignment Instructions Last Charged: 6/1/2020 Read and follow the directions below carefully and perform the steps in the order listed. You will be solving one program as instructed and turning in your work electronically via an uploaded file within Eagle Online/Canvas and copy & paste the program to the Text Entry box as well. Make sure and check your work prior to uploading the assignment (NOTE: For Steps 1 & 2...

  • Create one program using these three programs: 1. Payroll Calculator Need to include state tax amount...

    Create one program using these three programs: 1. Payroll Calculator Need to include state tax amount and SS amount Net pay need to reflect those amount Need to make all the amounts with 2 decimal points. Hint See line #31 - Use the programming outline/format discussed in the lecture, with proper documentation, data declaration, etc. - When asking a user for data, provide user-friendly and clear direction - Same thing for the output. - Include code and screenshot of the...

  • Problem 4-4A a-d (Video) (Part Level Submission) Benton Corporation produces two grades of non-alcoholic wine from...

    Problem 4-4A a-d (Video) (Part Level Submission) Benton Corporation produces two grades of non-alcoholic wine from grapes that it buys from California growers. It produces and sells roughly 3,000,000 liters per year of a low-cost, high-volume product called CoolDay. It sells this in 600,000 5-liter jugs. Benton also produces and sells roughly 300,000 liters per year of a low-volume, high-cost product called LiteMist. Lite Mist is sold in 1-liter bottles. Based on recent data, the CoolDay product has not been...

  • Problem 4-4A a-d (Video) (Part Level Submission) Benton Corporation produces two grades of non-alcoholic wine from...

    Problem 4-4A a-d (Video) (Part Level Submission) Benton Corporation produces two grades of non-alcoholic wine from grapes that it buys from California growers. It produces and sells roughly 3,000,000 liters per year of a low-cost, high-volume product called CoolDay. It sells this in 600,000 5-liter jugs. Benton also produces and sells roughly 300,000 liters per year of a low-volume, high-cost product called LiteMist. Lite Mist is sold in 1-liter bottles. Based on recent data, the CoolDay product has not been...

  • COMPLETE THE FOLLOWING USING THE ATTACHED DOCUMENTS In this exercise, you will perform a financial statement...

    COMPLETE THE FOLLOWING USING THE ATTACHED DOCUMENTS In this exercise, you will perform a financial statement analysis for Water Feature Designers Inc. You will perform horizontal/vertical analyses and create charts to highlight key information from these analyses. You will also calculate financial ratios and insert cell comments. Use this information to complete the ratio analysis. Ratio Current Ratio Debt-to-Equity Ratio Profit Margin 2016 7.62 0.17 .186 2015 3.45 0.28 292 2014 8.21 0.18 255 1. Open EA9-A2-FSA from your Chapter...

  • 1. What is the definition of an 'equivalence point' in an acid/base titration? (1 point) 2....

    1. What is the definition of an 'equivalence point' in an acid/base titration? (1 point) 2. In part one of the experiment, you will prepare the acid solutions being titrated from a stock solution. Describe how you will accurately prepare 10.00 mL of 0.100 M HCl solution using a 1.00 M HCl stock solution. In your response to this question, be very specific about the quantities of stock solution and deionized water to be used in the dilution and the...

  • please help with my pre lab additional information Pre-Lab Questions: 1. What is the definition of...

    please help with my pre lab additional information Pre-Lab Questions: 1. What is the definition of an 'equivalence point' in an acid/base titration? (1 point) 2. In part one of the experiment, you will prepare the acid solutions being titrated from a stock solution. Describe how you will accurately prepare 10.00 mL of 0.100 M HCl solution using a 1.00 M HCI stock solution. In your response to this question, be very specific about the quantities of stock solution and...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT