Sandeep Kumar Patel
Followers: 0 Following: 0
Feeds
已回答
Write a function called mixit
function track=mixit(org,weights) org=double(org); m=(org./65535).*2.-1; weights=weights.'; track=m*weights;...
Write a function called mixit
function track=mixit(org,weights) org=double(org); m=(org./65535).*2.-1; weights=weights.'; track=m*weights;...
2 years 前 | 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
If we apply the edits recommended by @Ameer Hamza, we get this: function ok=palindrome(txt) if length(txt)<=1 % added spac...
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
If we apply the edits recommended by @Ameer Hamza, we get this: function ok=palindrome(txt) if length(txt)<=1 % added spac...
2 years 前 | 1
已回答
Fibonacci Series Using Recursive Function
function v = fibor(n,v) if nargin==1 v = fibor(n-1,[1,1]); elseif n>1 v = fibor(n-1,[v,v(end-1)+v(end)]); elseif n...
Fibonacci Series Using Recursive Function
function v = fibor(n,v) if nargin==1 v = fibor(n-1,[1,1]); elseif n>1 v = fibor(n-1,[v,v(end-1)+v(end)]); elseif n...
2 years 前 | 0