Info

This question is closed. Reopen it to edit or answer.

Matlab script for excel file.

2 views (last 30 days)
nani kalyan
nani kalyan on 16 May 2015
Closed: MATLAB Answer Bot on 20 Aug 2021
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.

Answers (1)

B.k Sumedha
B.k Sumedha on 16 May 2015
for i=1:rows
if temp(i,1:2)==var
disp=var(i,1:2)
else
i=i+1;
end
end
  3 Comments
nani kalyan
nani kalyan on 16 May 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 on 16 May 2015
Edited: B.k Sumedha on 16 May 2015
[rows,coloumns]=size(tmp);
Specify this line above.

This question is closed.

Community Treasure Hunt

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

Start Hunting!