How to retrieve the specific rows with all the columns in the dataset?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Sai Gautam Mandapati
el 10 de Ag. de 2022
Comentada: KSSV
el 10 de Ag. de 2022
Hi everyone,
I have dataset which has 2832 rows and 4 columns. In this specific dataset I want to retrieve two rows, for example in the image provided for time instant 1.5 I want to get the two values of number of packets for both cachehits and cachemisses and further to the retrieved values I want to implement the formula of Hitratio = (Cachehits)/(CacheHits+CacheMisses) *100 and get the value of hit ratio.
0 comentarios
Respuesta aceptada
KSSV
el 10 de Ag. de 2022
idx = T.Time==1.5 ;
T1 = T(idx,:) ;
T1.(1)
T1.Node
T1.Type
You can access your required from T1.
6 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Spreadsheets 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!