

Using MatLab what would be the script for problem 4 given that question4.xlsx is the chart in the second picture. I know how to upload it and find the length but when I try to do the graph no graph is showing up after I run the script.
% Matlab script to read an excel file and plot the graph of the
values read
% read the data from the first worksheet in the Microsoft
% Excel spreadsheet file named "question4.xlsx" and returns the
numeric data in array values.
[values,txt,raw] = xlsread('question4.xlsx');
% plots the experimental data
plot((1:1:size(values,1)),values(:,1),'r--');
hold on; % holds the current graph so that the subsequent plots can
be plotted in the same graph
% plots the expected value
plot((1:1:size(values,1)),values(:,2),'r-');
hold off; % releases the current graph
% set the title
title('Experimental Values and Expected Values');
% set the x and y labels
xlabel('Record No');
ylabel('Values');
% set the legend
legend('Experimental','Expected');
%end of script
Output:

Using MatLab what would be the script for problem 4 given that question4.xlsx is the chart...
10.) Write a MATLAB script that will use the Pressure and Temperature columns from the provided Excel file imported previously. Use polyfit to create a linear best fit line. Calculate the R2 value for fit. Plot both the individual data points (red) and the fit line (blue) on the same graph. Include a title and axis labels.
i
need help solving these questions,please
don’t know how to solve it by using matlab.!
Solve the following questions Ol: You are required to develop a script to calculate the volume of a pyramid, which is 1/3 *base *height, where the base is length *width. Prompt the user to enter values for the length, width, and height, and then calculate the volume of the pyramid. When the user enters each value, he or she will then also be prompted to...
MATLAB SCRIPT PLEASE
Matlab MATH 210 in 2020 Homework Assignment 8- Due 3/25, 11:59PM Each plot should have its own figure associated with it. In all questions, give the figure a title, and label the acis. Save your matlab script as drill 10.m Do not use the fplot command. 1. Plot the function f(x) = (x + 5)2 for -5 <<<10. Include a plot title, and label both aris. 2. Use the subplot command to make two plots of...
MATLAB Question: Write a script for the problem pictured. Please
send the script, not just the printout. Make sure your script
allows you to input a value for n
so when prompted, in the command window, user types n value. The
n value should be the f_k if k ==1 .... Please also send print outs
if you can.
BELOW IS A SAMPLE ANSWER THAT DID NOT PUT THE INPUT SCRIPT
NEEDED FOR THIS QUESTION TO BE CORRECT. YOU CAN...
USING MATLAB SOFTWARE writing a script
2) A file called "hightemp.txt" was created some time ago which stores, on every line, a year followed by the high temperature at a specific location for each month of that year. For example, the file might look like this: 89 42 49 55 72 63 68 77 82 76 67 90 45 50 56 59 62 68 75 77 75 66 91 44 43 60 60 60 65 69 74 70 70 As...
Please help me with this MATLAB programming problem! Im coding
iin MATLAB2018 if that makes any difference!
The first picture is the question i need to answer.
The picture below is used as reference to answer the
question.
The last picture (below) is the into to the problem, and is
used as reference.
1. Use Matlab to create the following single plot with three subplots. All titles, gridlines, and axis labels should be as shown. Arc System Response 15 E...
Please MATLAB for all coding with good commenting.
(20) Consider the function f(x) = e* - 3x. Using only and exactly the four points on the graph off with x-coordinates -1,0, 1 and 2, use MATLAB's polyfit function to determine a 3' degree polynomial that approximates f on the interval (-1, 2]. Plot the function f(x) and the 360 degree polynomial you have determined on the same set of axes. f must be blue and have a dashed line style,...
Please help me correct my MATLAB script code for this
problem, thank you!!
A projectile PA is launched from point A towards the east with an initial launch velocity voa and an initial lauw angle of 0x. The impact point of the projectile Pa is a point B in a valley with an ordinate, yon, located below the clevation of point A. The launch from point A is instantaneously detected at point B, and a counter projectile P launched simultaneously...
Unable to correct errors from my MatLab Script and would like to see a script to compare mine to. Write a MatLab script that simulates a virus spread. This problem needs the following parts, some of which are nested loops, ie Part 3, 4 and 5 are nested in Part 2’s loop (for or while): To build the program first to only deal with infection transmission within the town’s neighbors An array which for every person in the town which...