photo

Jonathan Larsson


Last seen: 19 days ago Active since 2019

Followers: 0   Following: 0

Statistics

  • Thankful Level 2
  • Thankful Level 1

View badges

Feeds

View by

Question


Function with two inputs and arguments
Hello I am stuck on a problem. I am supposed to make a function that solves quadratic equations. If however the function gives c...

5 years ago | 1 answer | 0

1

answer

Question


How to create function
Hello I am woundering how you do this function; ,om = if, och=and I am supposed to do it with function f = fun(x,y) someth...

5 years ago | 0 answers | 0

0

answers

Question


Multiplying every secound element in a vector with -1
Hello I am looking for how to multiply every secound element in vector 1xn with -1, but I want to write this as a function. I ca...

5 years ago | 3 answers | 0

3

answers

Question


Describing a sum with a while loop
Hello I was woundering how you do this formula for pi as variable s in a while loop. For example; n=a big number s=0 while...

5 years ago | 1 answer | 0

1

answer

Question


Code following function?
om = if How do I code this function? The requirements are that z is a matrix. Thanks. x=[1:0.01:10] y=x-4*sin(2*x)-4

5 years ago | 2 answers | 0

2

answers

Question


How do I do this function?
x=[-1:0.1:1] f=x.^2.*sin(pi.*x) How do I solve this function for g in code? g=f if f>=0 g=0 if f<0 I tried doing: if f>=0 ...

5 years ago | 1 answer | 0

1

answer