For some reason I followed the steps in my project and I am getting the incorrect...
For some reason I followed the steps in my project and I am getting the incorrect output and when I am submitting it, it gives me compilation error.
Printing empty array -- next line should be blank
Testing append: Shouldn't crash!
Should print 100 through 110 below, with 110 on a new
line:
100
101 102 103 104 105 106 107 108 109
110
Checking capacity of new array:
OK
Append test #2:
Should print 100 through 120 below, on...
what did i do wrong in here? error said I have wrong code for
scatter(rate(:,1),rate(:,5),'o') but...
what did i do wrong in here? error said I have wrong code for
scatter(rate(:,1),rate(:,5),'o') but when I solved it, other codes
are messed up how to solve it?
datacell = textscan( regexprep( fileread('cricketData.csv'),
'\$', '0' ), '%f%f', 'delimiter', ',', 'HeaderLines', 1);
Duration = datacell{1};
Input = datacell{1};
YourTable = table(Duration, Input);
temp=datacell(:,1);
rate=datacell(:,2);
scatter(rate(:,1),rate(:,5),'o')
xlabel('temperature(T in degrees Fahrenheit)')
ylabel('chirping (R in chirp per second))')
title('Chirping rate vs Temperature')
p=polyfit(rate(:,1),rate(:,2),1);
x=min(1)-2:.01:max(2)+2;
hold on
plot(x,polyval(p,x))
legend('Data points,''best fit equation')
fprintf('Calculated equation:...
DataTable 1
Focal length, f
1.76
2f
3.52
Height of object, ho
4.0
Data Table 2...
DataTable 1
Focal length, f
1.76
2f
3.52
Height of object, ho
4.0
Data Table 2
General Description
Object Dist. (cm)
Image Dist. (cm)
Object Size (cm)
Image Size (cm)
Other Observations (real, virtual or no image?) (Upright or
inverted image?)
Object about 5 f
10
74.04
4
-29.62
Real, inverted
Object about 2.5f
10
7.87
4
-3.15
Real, inverted
Object 2f
10
5.44
4
-2.18
Real, inverted
More than f and less than 2f
10
4.29
4
-1.71
Real,...