Community Profile

photo

Joshua Vuong


Last seen: ongeveer 2 jaar ago Active since 2021

Followers: 0   Following: 0

Statistics

  • Thankful Level 1

View badges

Feeds

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...

meer dan 2 jaar 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'); ...

meer dan 2 jaar ago | 2 answers | 0

2

answers