why y=sum(x) is wrong. Still I made the same function on MATLAB software and it runs and give correct answer. Can anybody tell me whats going on......
The "y=" is missing from "y=sum(x)".
@Mr. Tim . Atleast You give me positive reply.Thanks a lot.Can I further talk to you regarding MATLAB CODY Guidence..
Sure, ok.
Test | Status | Code Input and Output |
---|---|---|
1 | Fail |
%%
x = 1;
y_correct = 1;
assert(isequal(vecsum(x),y_correct))
Error: Output argument "y" (and maybe others) not assigned during call to "/users/msssystem4/vecsum.m>vecsum".
|
2 | Fail |
%%
x = [1 2 3 5];
y_correct = 11;
assert(isequal(vecsum(x),y_correct))
Error: Output argument "y" (and maybe others) not assigned during call to "/users/msssystem4/vecsum.m>vecsum".
|
3 | Fail |
%%
x = [1 2 3 5];
y_correct = 11;
assert(isequal(vecsum(x),y_correct))
Error: Output argument "y" (and maybe others) not assigned during call to "/users/msssystem4/vecsum.m>vecsum".
|
4 | Fail |
%%
x = 1:100;
y_correct = 5050;
assert(isequal(vecsum(x),y_correct))
Error: Output argument "y" (and maybe others) not assigned during call to "/users/msssystem4/vecsum.m>vecsum".
|
Find state names that end with the letter A
709 Solvers
733 Solvers
Make a random, non-repeating vector.
2809 Solvers
Area of an equilateral triangle
2763 Solvers
569 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!