Community Profile

photo

Sofie Önnemar


Last seen: 18 dagar ago Active since 2020

Statistics

Content Feed

View by

Question


Find the positive entries in a matrix
Write a function positivecounter.m that takes as an input matrix A and gives as an output the number of positive entries in matr...

mer än ett år ago | 0 answers | 0

0

answers

Question


How to write an quadratic.m function
I have the equation: ax2 + bx + c = 0. - Equation does not have real roots if d= b2 −4ac < 0. - Equation has two real roots x1...

mer än ett år ago | 1 answer | 0

1

answer

Question


How to write an if-else statement for a function
The function is: f(n) = sqrt(1 + f(n-1)) if n>1 and f=2 if n=1 but I don't know how to start even.

mer än ett år ago | 2 answers | 0

2

answers