Arafat Roney
N/A
Followers: 0 Following: 0
I am a student at University of Dhaka and studying Electrical and Electronic Engineering.
Feeds
已回答
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...
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 前 | 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);...
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 前 | 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...
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 前 | 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+...
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 前 | 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 ...
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 前 | 3
已回答
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=...
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 前 | 0
已回答
[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...
[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 前 | 5
已回答
Write a function called get_distance that accepts two character vector inputs representing the names of two cities. The function returns the distance between them as an output argument called distance. For example, the call get_distance('Seattle, WA'
function distance=get_distance(a,b) [~,~,raw]=xlsread('Distances.xlsx'); row=raw(1,:); col=raw(:,1); for ii=2:length(row) ...
Write a function called get_distance that accepts two character vector inputs representing the names of two cities. The function returns the distance between them as an output argument called distance. For example, the call get_distance('Seattle, WA'
function distance=get_distance(a,b) [~,~,raw]=xlsread('Distances.xlsx'); row=raw(1,:); col=raw(:,1); for ii=2:length(row) ...
4 years 前 | 4