Community Profile

photo

Monkeydongkey


University of Rochester

Active since 2015

Followers: 0   Following: 0

Message

Statistics

Feeds

View by

Question


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?

8 years ago | 1 answer | 0

1

answer

Question


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

8 years ago | 2 answers | 0

2

answers

Question


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...

8 years ago | 1 answer | 0

1

answer

Question


What is the difference between following commands?
A==B vs A=B, where A and B are matrices.

8 years ago | 1 answer | 0

1

answer

Question


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...

8 years ago | 1 answer | 0

1

answer