How to divide a matrix by a number

70 次查看(过去 30 天)
Hi,
I have a function like:
r=[0.1:0.1:10];
E=1/(r^3);
How to get value E with correct command.
I try several but it is not correct.

采纳的回答

Torsten
Torsten 2016-1-22
r=0.1:0.1:10;
E=1./(r.^3);
Best wishes
Torsten.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Logical 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by