昱安 朱
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...
1년 초과 전 | 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...
1년 초과 전 | 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...
1년 초과 전 | 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...
1년 초과 전 | 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=-...
1년 초과 전 | 0