Question
Need help with a MATLAB assignment. Problem : Create a function to calculate difference in temperature i.e. difference in 2 vectors Temperature 1 and Temperature
Need help with a MATLAB assignment.
Problem : Create a function to calculate difference in temperature i.e. difference in 2 vectors Temperature 1 and Temperature 2. Calculate which of the days of first week was hotter than days in second week.
Tasks: 1. Create 2 input vectors of size 1*7 that will be used to store different temperature values for 2 weeks. 2. Make the function return the difference in temperature values and the hotter days. Hint: function [ diff, hotter] = differenceInTemperatures( Week1, Week2) 3. Assign hotter = 0 if week 2 is hotter, hotter= 1 if week 1 is hotter, and hotter = 2 if both the days have equal temperature.
Use the GUI Commands for this Assignment to take the user input values for the temperature values.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started