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".
|
What is the next step in Conway's Life?
639 Solvers
Solve the set of simultaneous linear equations
273 Solvers
394 Solvers
Create a vector whose elements depend on the previous element
391 Solvers
400 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!