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년 초과 전 | 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년 초과 전 | 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년 초과 전 | 0