What should I do to create a raw .xlsx data table from as an alternative to disp()?

1 回表示 (過去 30 日間)
Zachary Henry
Zachary Henry 2015 年 12 月 1 日
回答済み: Walter Roberson 2015 年 12 月 1 日
I have a professor in my introductory MATLAB class who will not allow me to use the disp() function to create a table from the raw data in this spreadsheet. She told me to "create a loop and use fprintf" but I have no idea what she meant by that. It seems like it would be incredibly inefficient. Below is my code as it stands.
[~, ~, dataTable] = xlsread('filename.xlsx','thisPage');
disp(dataTable);

回答 (1 件)

Walter Roberson
Walter Roberson 2015 年 12 月 1 日
Assignments are often given in terms of unrealistic or inefficient restrictions. If you want the marks for the assignment, you will implement it using the restrictions given by your professor.

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by