Iam new to matlab... Beginner..

조회 수: 3 (최근 30일)
Rizwana
Rizwana 2013년 10월 25일
댓글: Matt Kindig 2013년 10월 25일
I have imported an excel file which reads 1367*17 rows & columns.. In my program i should read starting or in between 10 rows & 10 columns & plot contours... How to use for looping for this cenario & the code should be user defined... for eg... when user enters 10 then 10 rows & coulumns should be read out... Please help me... If not possible to write codes,suggest me links where i can read & try to code..

채택된 답변

David Sanchez
David Sanchez 2013년 10월 25일
rows = input('Enter matrix size: '); % user input
end_cell = strcat(char(65+rows),num2str(rows));
range = strcat('A1:',end_cell); % if rows = 10, range = 'A1:K10'. If rows = 5, range = 'A1:F5'
M = xlsread('my_excel_file.xls',range); % the matrix you want
  댓글 수: 2
Rizwana
Rizwana 2013년 10월 25일
Thank you so much. Can you help me out suggesting me a matlab text book.. I want to to get fluent with excel data manipulation using matlab. I will really greatfull.
Matt Kindig
Matt Kindig 2013년 10월 25일
While there are a number of good Matlab books out there, you might just want to start with the "Getting Started" section in the Help documentation. Just open Help, and click the "Getting Started" link in that page, and go through those tutorial videos first.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Spreadsheets에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by