Feeds
提问
Need to define function over two ranges of input
I have a function dependent on one input n I want the function to perform one operation for n=0, and another for n>=1 How can ...
10 years 前 | 1 个回答 | 0
1
个回答提问
Why does my function give no outputs?
function [A]=AccGold() n = 4; while Gold(n)-Gold(n-1) > 0.00000001 n = n+1; A = Gold(n) e...
10 years 前 | 1 个回答 | 0
1
个回答提问
I can't use the output from my function
Here is a simple function I created to generate the nth Fibonacci number: function []=Fib(n) sn(1) = 1; sn(2)...
10 years 前 | 1 个回答 | 0
