How to write a program to generate a table of the base-10 logarithms between 1 and 10 in steps of 0.1?
7 views (last 30 days)
Show older comments
% write a program to generate a table of the base-10 logarithms between 1 and 10 in steps of 0.1
x = (1:0.1:10)';
y = log10(x);
A = reshape(y,[10,10])
0 Comments
Answers (1)
Voss
on 16 Apr 2024
x = (1:0.1:10).';
y = log10(x);
T = table(x,y,'VariableNames',{'x','log10(x)'})
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!