How to arrange plotted points in to a table?

조회 수: 1 (최근 30일)
Dion
Dion 2014년 1월 29일
편집: Amit 2014년 1월 29일
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

답변 (1개)

Amit
Amit 2014년 1월 29일
편집: Amit 2014년 1월 29일
If starting_w is vector, you can save the x,y values as
myval = [starting_w opt_f(disc_w(starting_w),2,1)]

카테고리

Help CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by