昱安 朱
Followers: 0 Following: 0
Feeds
已回答
Generate echo to an audio
function output = echo_gen(input, fs, delay, amp) %input : signal,fs : sample rate,dalay : time of dalay,amp : amplitude num_d...
Generate echo to an audio
function output = echo_gen(input, fs, delay, amp) %input : signal,fs : sample rate,dalay : time of dalay,amp : amplitude num_d...
2 years 前 | 0
已回答
Write a function called blur that blurs the input image
function output = blur(img,w) [row_img,col_img]=size(img); output=zeros(row_img,col_img); imgd=double(img); % must convert...
Write a function called blur that blurs the input image
function output = blur(img,w) [row_img,col_img]=size(img); output=zeros(row_img,col_img); imgd=double(img); % must convert...
2 years 前 | 0
已回答
I get an error, what's wrong? on Sparse matrix logic and answer
function matrix=sparse2matrix(cellvec) matrix=cellvec{2}*ones(cellvec{1,1}); for ii=3:length(cellvec) matrix(cellvec{i...
I get an error, what's wrong? on Sparse matrix logic and answer
function matrix=sparse2matrix(cellvec) matrix=cellvec{2}*ones(cellvec{1,1}); for ii=3:length(cellvec) matrix(cellvec{i...
2 years 前 | 0
已回答
caesar cyphor encryption problem .
function [coded]=caesar(encrypt,shift) coded_num=encrypt+shift; big=coded_num(coded_num>126); small=coded_num(cod...
caesar cyphor encryption problem .
function [coded]=caesar(encrypt,shift) coded_num=encrypt+shift; big=coded_num(coded_num>126); small=coded_num(cod...
2 years 前 | 0
已回答
Write a function max_sum that takes v a row vector of numbers & n,a positive integer as inputs.The function needs to find n consecutive elements of v whose sum is largest possible.It returns summa & index of first element of n consecutive integers.
function [summa,index]=max_sum(v,n) len=length(v); %v的長度 if(n>length(v)) %n大於v的長度 summa=0; index=-...
Write a function max_sum that takes v a row vector of numbers & n,a positive integer as inputs.The function needs to find n consecutive elements of v whose sum is largest possible.It returns summa & index of first element of n consecutive integers.
function [summa,index]=max_sum(v,n) len=length(v); %v的長度 if(n>length(v)) %n大於v的長度 summa=0; index=-...
2 years 前 | 0