Borrar filtros
Borrar filtros

how do i present the variable W with the 2 digits after the decimal point?

2 visualizaciones (últimos 30 días)
i=0.15; v=24;
c=25*10^-6;
R=140; L=260*10^-3;
syms W
eqn = i==v/sqrt((R^2)+(W*L-1/W*c)^2);
W = solve(eqn,W);
w= round(W)

Respuestas (1)

Purushottama Rao
Purushottama Rao el 14 de Mayo de 2015
Editada: Purushottama Rao el 14 de Mayo de 2015
format bank
w
  5 comentarios
Walter Roberson
Walter Roberson el 14 de Mayo de 2015
double() the symbolic number to get floating point.

Iniciar sesión para comentar.

Categorías

Más información sobre Numbers and Precision en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by