I don't know how to call my function
function norm = myvectornorm(x) % calculate the norm s=0; n=length(x); for i=1:length(x) s =s+ x*(i)^2; end norm= s...
3 maanden ago | 1 answer | 0
I have a problem where my code works on matlab but does not on matlab grader could there be some type of reason for this.
function y = mysum(n) n=input('Enter an integer'); sum=0; if n<0 y=-1; disp('cannot input a negative number'); ...
3 maanden ago | 2 answers | 0