Extract a range of frequencies from a vector/array
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Sibghat
el 27 de Sept. de 2022
Hello,
I hope you are in good health.
I am trying to select a range of frequencies from the given data set.
load phaseNoise.mat
plot(fnew,pnew)
new_value_from_fnew = fnew(fnew = 10e+009 | fnew <= 30e+009);
However, I get an error when I try to set the initial and final value saying that 'Unable to use a value of type string as an index.'. I have tried changing the data type as well but didn't work either.
Basically, I want to only select the frequencies from 10GHz to 30GHz and discard the rest of the values so I can display the graph from 10GHz to 30GHz and perform further analysis on the given range only.
Any help will be appreciated.
BR.
0 comentarios
Respuesta aceptada
KSSV
el 27 de Sept. de 2022
new_value_from_fnew = fnew(fnew == 10e+009 | fnew > 30e+009); % <--- replace = with ==
Más respuestas (0)
Ver también
Categorías
Más información sobre Whos 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!