Feeds
提问
How can I make a function m-file that compute harmonic sum??
What I did is function f = f+1./i f=0 for i = 1:n f= f + 1./i end Please anyone help me out?
10 years 前 | 1 个回答 | 0
1
个回答提问
What is the difference between A' vs A.' ?
First one is transpose of matrix A. I don't see any difference between A' and A.' since I keep getting same thing
10 years 前 | 2 个回答 | 0
2
个回答提问
How Can I vectorize the following codes?
for i=1:40, A(i,2); end for j=1:100, x(j)=1/j; end s=0; for k=1:100, s=s+rand; end I think for the second one...
10 years 前 | 1 个回答 | 0
1
个回答提问
What is the difference between following commands?
A==B vs A=B, where A and B are matrices.
10 years 前 | 1 个回答 | 0
1
个回答提问
How can I write a function m-file that calculates harmonic sum?
Actually, It is my first time using MATLAB and I am assigned to write a function m-file that computes the value of harmonic seri...
10 years 前 | 1 个回答 | 0