How to create .csv file from curve plot as a results of our run?

4 views (last 30 days)
Hi matlab users,
i got a curve as a results of my running. How can i convert its raw data into .csv? with variable Load as y-axis and displacement as x-axis in it?

Accepted Answer

KSSV
KSSV on 9 Feb 2017
Edited: KSSV on 9 Feb 2017
You have to use csvwrite. Read about csvwrite

More Answers (1)

José-Luis
José-Luis on 9 Feb 2017
lH = plot(aH,rand(100,1),rand(100,1));
xData = lH.XData;
yData = lH.YData;
csvwrite('dummy.txt',[xData', yData'])

Community Treasure Hunt

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

Start Hunting!