SUTITHI
Followers: 0 Following: 0
Feeds
已回答
Recursive function to reverse a vector
function w=reversal(v) if length(v)==1 w= v; else w= [v(end),reversal(v(1:end-1))]; end
Recursive function to reverse a vector
function w=reversal(v) if length(v)==1 w= v; else w= [v(end),reversal(v(1:end-1))]; end
2 years 前 | 0