How to arrange plotted points in to a table?

Hi There, I am new to Matlab and I am currently experiencing some difficulty using the fprintf function. I currently have the follow code which plots my data points to a graph:
plot(starting_w, opt_f(disc_w(starting_w),2,1),'r');
How can I arrange the same data into a table so that I have the corresponding x and y coordinates?
Thankyou in advance, Dion

Antworten (1)

Amit
Amit am 29 Jan. 2014
Bearbeitet: Amit am 29 Jan. 2014

0 Stimmen

If starting_w is vector, you can save the x,y values as
myval = [starting_w opt_f(disc_w(starting_w),2,1)]

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 29 Jan. 2014

Bearbeitet:

am 29 Jan. 2014

Community Treasure Hunt

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

Start Hunting!

Translated by