xin yi leow
Followers: 0 Following: 0
Feeds
답변 있음
recursive function to check a Palindrome
function t=palindrome(char) if length(char)==2 if char(1)==char(2) t=true else ...
recursive function to check a Palindrome
function t=palindrome(char) if length(char)==2 if char(1)==char(2) t=true else ...
3년 초과 전 | 3
답변 있음
Code for 'Reverse a Vector'
function v=reversal(w) if length(w)==1 v=w(1); else v=[reversal(w(2:end)) w(1)]; end end
Code for 'Reverse a Vector'
function v=reversal(w) if length(w)==1 v=w(1); else v=[reversal(w(2:end)) w(1)]; end end
3년 초과 전 | 0
답변 있음
I get an error, what's wrong? on Sparse matrix logic and answer
function matrix=sparse2matrix(cellx) matrix=zeros(cellx{1}); matrix(:,:)=cellx{2}; for ii=3:length(cellx) ...
I get an error, what's wrong? on Sparse matrix logic and answer
function matrix=sparse2matrix(cellx) matrix=zeros(cellx{1}); matrix(:,:)=cellx{2}; for ii=3:length(cellx) ...
3년 초과 전 | 0