Matlab script for excel file.

i have loaded the excel file in matlab script, and also i have founded the maximum value, but i need the either side value of maximum value should be display in command window. please help me friends.

Respuestas (1)

B.k Sumedha
B.k Sumedha el 16 de Mayo de 2015

0 votos

for i=1:rows
if temp(i,1:2)==var
disp=var(i,1:2)
else
i=i+1;
end
end

3 comentarios

B.k Sumedha
B.k Sumedha el 16 de Mayo de 2015
Say that temp is the file where u have all ur data and var is the data when u get the highest value.
nani kalyan
nani kalyan el 16 de Mayo de 2015
It was showing like this.....
Undefined function or variable 'rows'.
Error in Untitled (line 10) for i=1:rows
B.k Sumedha
B.k Sumedha el 16 de Mayo de 2015
Editada: B.k Sumedha el 16 de Mayo de 2015
[rows,coloumns]=size(tmp);
Specify this line above.

La pregunta está cerrada.

Etiquetas

Preguntada:

el 16 de Mayo de 2015

Cerrada:

el 20 de Ag. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by