Community Profile

photo

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

  • First Answer

View badges

Content Feed

View by

Answered
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...

4 years ago | 2

Answered
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);...

4 years ago | 2

Answered
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...

4 years ago | 0

Answered
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+...

4 years ago | 0

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

4 years ago | 3

Answered
Write a function called blur that blurs the input image
help me finding out the error....this shows "The server timed out while running and assessing your solution.'' function output=...

4 years ago | 0

Answered
[Assignment]Write a function called saddle that finds saddle points in the input matrix M.
function in=saddle(M) [m,n]=size(M); %%SIZE CALCULATED in=[]; %%'in' IS INITIALIZED AS AN EMPTY MATRIX for ii=1...

4 years ago | 5