How to write a program to generate a table of the base-10 logarithms between 1 and 10 in steps of 0.1?
12 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 at 18:07
x = (1:0.1:10).';
y = log10(x);
T = table(x,y,'VariableNames',{'x','log10(x)'})
0 Comments
See Also
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!