Cody

Solution 2644546

Submitted on 2 Jul 2020
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Fail
N = 2*pi; y = cos(0:0.03:N); f = cosplot(N); assert(isequal(f.YData,y) && isequal(f.Color, [1 0 0]) && strcmp(f.LineStyle, ':') && strcmp(f.Marker,'*') );

x = Columns 1 through 18 0 0.0300 0.0600 0.0900 0.1200 0.1500 0.1800 0.2100 0.2400 0.2700 0.3000 0.3300 0.3600 0.3900 0.4200 0.4500 0.4800 0.5100 Columns 19 through 36 0.5400 0.5700 0.6000 0.6300 0.6600 0.6900 0.7200 0.7500 0.7800 0.8100 0.8400 0.8700 0.9000 0.9300 0.9600 0.9900 1.0200 1.0500 Columns 37 through 54 1.0800 1.1100 1.1400 1.1700 1.2000 1.2300 1.2600 1.2900 1.3200 1.3500 1.3800 1.4100 1.4400 1.4700 1.5000 1.5300 1.5600 1.5900 Columns 55 through 72 1.6200 1.6500 1.6800 1.7100 1.7400 1.7700 1.8000 1.8300 1.8600 1.8900 1.9200 1.9500 1.9800 2.0100 2.0400 2.0700 2.1000 2.1300 Columns 73 through 90 2.1600 2.1900 2.2200 2.2500 2.2800 2.3100 2.3400 2.3700 2.4000 2.4300 2.4600 2.4900 2.5200 2.5500 2.5800 2.6100 2.6400 2.6700 Columns 91 through 108 2.7000 2.7300 2.7600 2.7900 2.8200 2.8500 2.8800 2.9100 2.9400 2.9700 3.0000 3.0300 3.0600 3.0900 3.1200 3.1500 3.1800 3.2100 Columns 109 through 126 3.2400 3.2700 3.3000 3.3300 3.3600 3.3900 3.4200 3.4500 3.4800 3.5100 3.5400 3.5700 3.6000 3.6300 3.6600 3.6900 3.7200 3.7500 Columns 127 through 144 3.7800 3.8100 3.8400 3.8700 3.9000 3.9300 3.9600 3.9900 4.0200 4.0500 4.0800 4.1100 4.1400 4.1700 4.2000 4.2300 4.2600 4.2900 Columns 145 through 162 4.3200 4.3500 4.3800 4.4100 4.4400 4.4700 4.5000 4.5300 4.5600 4.5900 4.6200 4.6500 4.6800 4.7100 4.7400 4.7700 4.8000 4.8300 Columns 163 through 180 4.8600 4.8900 4.9200 4.9500 4.9800 5.0100 5.0400 5.0700 5.1000 5.1300 5.1600 5.1900 5.2200 5.2500 5.2800 5.3100 5.3400 5.3700 Columns 181 through 198 5.4000 5.4300 5.4600 5.4900 5.5200 5.5500 5.5800 5.6100 5.6400 5.6700 5.7000 5.7300 5.7600 5.7900 5.8200 5.8500 5.8800 5.9100 Columns 199 through 210 5.9400 5.9700 6.0000 6.0300 6.0600 6.0900 6.1200 6.1500 6.1800 6.2100 6.2400 6.2700

Output argument "f" (and maybe others) not assigned during call to "cosplot". Error in Test1 (line 3) f = cosplot(N);

  

Suggested Problems

More from this Author13