Community Profile # Arafat Roney

### N/A

Last seen: 3 years ago Active since 2020

I am a student at University of Dhaka and studying Electrical and Electronic Engineering.

#### Statistics

• #### Content Feed

View by

Function to find the next prime number...
function k=next_prime(n) i=n+1; if(isprime(i)) k=i; else while(~isprime(i)) i=i+1; end k=i; end...

3 years ago | 2

Write a function called sparse2matrix that takes a single input of a cell vector as defined above and returns the output argument called matrix, the matrix in its traditional form
function matrix=sparse2matrix(p) m=p{1}(1,1); n=p{1}(1,2); o=p{2}(1,1); s=o.*ones(m,n); for i=3:length(p) r=p{i}(1,1);...

3 years ago | 2

Date Validation Logic and Error message
function valid=valid_date(year,month,day) if((isscalar(year))&&(isscalar(month))&&(isscalar(day))) if((year==abs(fix(yea...

3 years ago | 0

caesar cyphor encryption problem .
function coded=caesar(c,s) n=mod(s,95); sc=c+n; l=length(sc); w=[]; for i=1:l if sc(i)>126 p=31+...

3 years ago | 0

Generate echo to an audio
function output = echo_gen(input, fs, delay, amp) ds = round((delay)*fs); %%CALCULATING DELAY SAMPLE NUMBERS if ds==0 ...

3 years ago | 3