Community Profile

photo

Joshua Vuong


Last seen: 17 dagen ago Active since 2021

Statistics

  • Thankful Level 1

View badges

Content Feed

View by

Question


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

1

answer

Question


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

2

answers