Weisz Thomas
Followers: 0 Following: 0
Feeds
提问
i need help balancing the inner matrix dimensions of the two sine functions .
function mul_sines(f1,f2) t=0:0.01:20; s=sin(f1*t)*sin(f2*t+pi); plot(t,s)
6 years 前 | 1 个回答 | 0
1
个回答提问
how can i make the centre elements of a matrix to become zeros
I am writting a function that takes an n-by-m matrix and and an odd interger k as input arguments. both n and m are odd numbers ...
6 years 前 | 3 个回答 | 0
3
个回答已回答
i'am writing a function the takes an n-by-m matrix as an input and returns the input matrix with the center element zeroed out. when i run it, it is giving the error:' not enough input arguments' in line two. can anybody assist me please.
function h= zero_middle(h) h(end/2+1/2,end/2+1/2)=0; end
i'am writing a function the takes an n-by-m matrix as an input and returns the input matrix with the center element zeroed out. when i run it, it is giving the error:' not enough input arguments' in line two. can anybody assist me please.
function h= zero_middle(h) h(end/2+1/2,end/2+1/2)=0; end
6 years 前 | 0
提问
i'am writing a function the takes an n-by-m matrix as an input and returns the input matrix with the center element zeroed out. when i run it, it is giving the error:' not enough input arguments' in line two. can anybody assist me please.
function zero_middle(h) [n,m]=size(h); for ii=1:n; for jj=1:m; if mod(ii,2) && mod(jj,2); h(end/2+1...
6 years 前 | 2 个回答 | 0
2
个回答提问
what are the indices of the middle element of a matrix
Write a function called zero_middlethat takes an n-by-mmatrix as an input where both nand mare odd numbers (the function does ...
6 years 前 | 1 个回答 | 0