JAYANTHI SANKARALINGAM
Followers: 0 Following: 0
Feeds
提问
Recursion revisited, variable y has in correct value
function v= reversal(v) if length (v)>1 ii =round(length(v) /2 ); v=[reversal(v(ii+1:end)),reversal(v(1:ii))]; ...
3 years 前 | 0 个回答 | 0
0
个回答提问
how to return a function handle to a nested function that computed the value of a polynomialin matlab
how to return a function handle to a nested function that computed the value of a polynomialin matlab
4 years 前 | 0 个回答 | 0
0
个回答提问
write a function called palindrome that takes one input argument a char vector and recursively determine whether that argument is a palindrome you are not allowed to use loops not built in function like srtcmp etc. the function returns true or false
function ok=palindrome(txt) iflength(txt)<=1 ok=true; else ok=(txt(1)==txt(end)&&palindrome(txt(2:end-1))); end end ...
4 years 前 | 4 个回答 | 0
4
个回答已回答
recursive function to calculate Max number.
Write a function called recursive_max that finds the maximum element in a vector without using loop or any built in functions.th...
recursive function to calculate Max number.
Write a function called recursive_max that finds the maximum element in a vector without using loop or any built in functions.th...
4 years 前 | 0
已回答
Finding max of an element vector using recursion
Write a function called recursive_max that finds the maximum element in a vector without using loop or any built in functions.th...
Finding max of an element vector using recursion
Write a function called recursive_max that finds the maximum element in a vector without using loop or any built in functions.th...
4 years 前 | 0