matlab读取excel某列数值后,取得最大值和该值的行号,如何读取该数值上下各10个数值。
6 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
prvrcfeg
el 25 de Mayo de 2023
Respondida: ymyveny
el 25 de Mayo de 2023
各位大神,
我欲读取excel文件中某类数值,读取后,找到该列数据的最大值和所在位置,我想把最大值上方取10个数值,下方取20个数值,不知道该如何提取,我之前尝试过使用直接用所取得的位置+20计算,可是数据提示无效,请大神指点
0 comentarios
Respuesta aceptada
ymyveny
el 25 de Mayo de 2023
示例:
I = rand(100,1);
[Imax,Iind] = max(I);
Temp = I(Iind-10:Iind+20,1);
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Data Import from MATLAB 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!