f=1:10; y=(1+f)*log(1+1/f)用MATLAB怎么写?

问题描述:

f=1:10; y=(1+f)*log(1+1/f)用MATLAB怎么写?

>> f=1:10;
>> y=(1+f).*log(1+1./f)
y =
Columns 1 through 9
1.3863 1.2164 1.1507 1.1157 1.0939 1.0791 1.0683 1.0600 1.0536
Column 10
1.0484
希望我的回答会对你有帮助!