필터 지우기
필터 지우기

Need to write pre-written excel sheet using xlswrite or other function

조회 수: 1 (최근 30일)
Bhatu
Bhatu 2015년 4월 29일
댓글: Bhatu 2015년 5월 4일
For one of my application I want to write specific row & column in excel sheet. My question is with related to "xlswrite" function. My excel is pre-loaded with some data like test report where we mention test case details, description etc.In front of that I want to write a result in the form of PASS or FAIL. Could you please suggest solution how to write specific row column with out deleting other data.

채택된 답변

Shrirang
Shrirang 2015년 4월 29일
Hi, 1) You can import the excel sheet in Matlab using xlswrite. Calculate the status of TC and write it in corresponding cell in Matlab and after updating all the cells in Matlab write the whole Matrix in xls using xlswrite function. 2) OR you can just calculate the status of all TC and just write the TC result in xls by specifying the range in xlswrite function. Hope this helps you...

추가 답변 (1개)

KL
KL 2015년 4월 29일
You can also use table functions. For example
T = readtable('Book.xlsx')
newdata = [6 6 6 6 6 6 6 6 6 6];
newdata = newdata';
C =array2table(newdata);
T = [T C];
writetable(T,'Book.xlsx');
  댓글 수: 1
Bhatu
Bhatu 2015년 5월 4일
Thanks for reply, I am using 2010a where this function is not available. But I found another solution suggested by Mr. Shrirang.

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

카테고리

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