Feeds
已回答
How many positive entries in array
function count = positiveEntries(arr) count = sum(arr > 0); end
How many positive entries in array
function count = positiveEntries(arr) count = sum(arr > 0); end
3 days 前 | 0
已回答
how to sum all elements of one vector?
v = [1 2 3 4 5]; total = sum(v); disp(total);
how to sum all elements of one vector?
v = [1 2 3 4 5]; total = sum(v); disp(total);
3 days 前 | 0
已回答
Write a function to calculate the area of a circle
function area = circleArea(radius) area = pi * radius^2; end
Write a function to calculate the area of a circle
function area = circleArea(radius) area = pi * radius^2; end
3 days 前 | 0
已回答
Write a MATLAB function that returns the square of a number.
function sqr=sqr(x) sqr=x^2; end
Write a MATLAB function that returns the square of a number.
function sqr=sqr(x) sqr=x^2; end
3 days 前 | 0
