I want to display my result in a output file but idk how to do that.
6 views (last 30 days)
Show older comments
Clemente Delgado Vega
on 13 Dec 2019
Commented: Clemente Delgado Vega
on 13 Dec 2019
Hello I am kinda new to matlab, below is a code that gives the assigned letter grade to the numbers in the attached excel file. The code has already given me the dessignated letter grade, but i am haveing trouble creating an output file for my results.
This is what i have
grade= xlsread('gradesexcel');
data.grade = discretize(grade,...
[.50, .60, .70, .80, .90, 1.00],...
'categorical',...
{'F','D','C','B','A'});
I want to display my result for this code in a output file, how can I do that?
1 Comment
Walter Roberson
on 13 Dec 2019
What should the output file look like? And should it be text or an excel file?
Accepted Answer
Bhaskar R
on 13 Dec 2019
xlswrite('output_file.xlsx', [cellstr(num2str(grade)), cellstr(data.grade)]);
More Answers (0)
See Also
Categories
Find more on MATLAB Compiler in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!