I want to display my result in a output file but idk how to do that.

6 views (last 30 days)
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?

Accepted Answer

Bhaskar R
Bhaskar R on 13 Dec 2019
xlswrite('output_file.xlsx', [cellstr(num2str(grade)), cellstr(data.grade)]);

More Answers (0)

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!