Jonathan Larsson
Content Feed
질문
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...
4년 초과 전 | 답변 수: 1 | 0
1
답변질문
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...
4년 초과 전 | 답변 수: 0 | 0
0
답변질문
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...
4년 초과 전 | 답변 수: 3 | 0
3
답변질문
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...
4년 초과 전 | 답변 수: 1 | 0
1
답변질문
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
4년 초과 전 | 답변 수: 2 | 0
2
답변질문
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 ...
4년 초과 전 | 답변 수: 1 | 0