i have the elements of column 2 in dBm unit that I want to convert in linear scale using following formula. Col2linear = 10.^(( matrix.column2 -30)/10);
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
zhoug zho
el 18 de Mayo de 2021
Comentada: zhoug zho
el 18 de Mayo de 2021
i have the elements of column 2 in dBm unit that I want to convert in linear scale using following formula.
Col2linear = 10.^(( matrix.column2 -30)/10);
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/621868/image.jpeg)
But it is giving an error
Operator '-' is not supported for operands of type 'table'.
how can i solve this issue ?
Thanks
0 comentarios
Respuesta aceptada
Adam Danz
el 18 de Mayo de 2021
Editada: Adam Danz
el 18 de Mayo de 2021
How does that convert the data to a linear scale unless it's the inverse of a non-linear transformation that made it non-linear in the first place?
Assuming matrix is actually a table (misleading variable name), nothing appears to be wrong with the line of code you're using.
Based on the error message, you may have forgotten to index the table and may have mistakenly tried to execute
Col2linear = 10.^(( matrix -30)/10); % wrong
or
Col2linear = 10.^(( matrix(:,2) -30)/10); % wrong
instead of what you have written,
Col2linear = 10.^(( matrix.column2 -30)/10); % appears to be correct
Otherwise we'll need more information about what matrix and matrix.column2 is. Is column2 a sub-table?
Más respuestas (0)
Ver también
Categorías
Más información sobre Logical 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!