photo

youssef


Last seen: 11 months ago Active since 2023

Followers: 0   Following: 0

Statistics

All
MATLAB Answers

0 Questions
2 Answers

Cody

0 Problems
28 Solutions

RANK
182,029
of 300,618

REPUTATION
0

CONTRIBUTIONS
0 Questions
2 Answers

ANSWER ACCEPTANCE
0.00%

VOTES RECEIVED
0

RANK
 of 21,030

REPUTATION
N/A

AVERAGE RATING
0.00

CONTRIBUTIONS
0 Files

DOWNLOADS
0

ALL TIME DOWNLOADS
0

RANK
14,872
of 169,839

CONTRIBUTIONS
0 Problems
28 Solutions

SCORE
373

NUMBER OF BADGES
3

CONTRIBUTIONS
0 Posts

CONTRIBUTIONS
0 Public Channels

AVERAGE RATING

CONTRIBUTIONS
0 Highlights

AVERAGE NO. OF LIKES

  • Community Group Solver
  • Promoter
  • First Answer
  • Solver

View badges

Feeds

View by

Answered
I want to write a recursive Function that can calculate the sum of all the digit. If the input is 12345 then the answer will be 1+2+3+4+5 , without using string2num and loop.
function x=digit_sum(n) x=0; if n<=0 x=0; else x=x+mod(n,10)+digit_sum((n-mod(n,10))/10); end end

2 years ago | 0

Answered
write a function called saddle in the input matrix M , the function should return with exactly two column vector and each row of output vector represent dimensions of saddle point in the input matrix M
function indices=saddle(M) indices=[]; [a,b]=size(M); rows=cell(a,1); %making the ceLLs for i=1:a rows{i,1}=M(i,:); e...

2 years ago | 0