提问


How to plot points on a line
Say I have a random sequence of such as new=randn(5,1) which produces y values of ans = -0.9118 0.0494 1.0780 ...

4 years 前 | 1 个回答 | 0

1

个回答

提问


Changing a for loop to recursion
Just wondering if I could get a bit of help on this. How would I change this code to remove the for loop so it operates recursiv...

4 years 前 | 1 个回答 | 0

1

个回答

提问


How to add values from if statements to a column
say I have function [x,y]=valuesof(data) input= data; t=length(data); for z=2:t if input(z-1)>input(z) && input (z)<...

4 years 前 | 1 个回答 | 0

1

个回答

提问


Plotting infinite series on interval
I have the following function for error approximation function y = Approx(x,N); Approx=zeros(1,length(x)); for n=0:N Ap...

4 years 前 | 0 个回答 | 0

0

个回答

提问


Series expansion: looping over different inputs
Say I have the approximation My question asks that I create two functions to calculate this approximation for an interval of x-...

4 years 前 | 1 个回答 | 0

1

个回答

提问


Error approximation as a function
I have this error approximation and I am trying to create two functions. One which loops over the values and the second which...

4 years 前 | 0 个回答 | 0

0

个回答

提问


using a function to answer new questions
I have created function y=Gss(n); a=3; b=0.2; N(1)=0.2; for v=2:n+1 N(v)=exp(-a*N(v-1)^2)+b; end y=N(v);...

4 years 前 | 1 个回答 | 0

1

个回答

提问


Help with Padovan Sequence
I have a question that says P(0)=P(1)=P(2)=1 , P(n)=P(n-2)+P(n-3) use for loops to get a script for p(n) I have written fun...

4 years 前 | 1 个回答 | 0

1

个回答