Community Profile

photo

Joshua Vuong


Last seen: 約2年 前 2021 年からアクティブ

Followers: 0   Following: 0

統計

  • Thankful Level 1

バッジを表示

Feeds

表示方法

質問


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

2年以上 前 | 1 件の回答 | 0

1

回答

質問


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'); ...

2年以上 前 | 2 件の回答 | 0

2

回答