MATLAB Matlab help please (generating a plot from this data)

  • Thread starter Thread starter binbagsss
  • Start date Start date
  • Tags Tags
    Data Matlab Plot
Click For Summary
To generate a plot from data saved in PDF format, it is recommended to first extract the data into a text file or Excel, then save it as a CSV or text file. Once the data is in the correct format, it can be loaded into MATLAB using appropriate commands. Users can paste the relevant plotting code in the live window after loading the data to generate the plots. It is important to call upon the saved text file rather than pasting directly from it into the live window. Following these steps will allow for successful plotting of the data.
binbagsss
Messages
1,291
Reaction score
12
Hi

I have saved data in pdf format, and I wish to generate a plot from this data.

The data is iterations of optimising some function.

I can't just copy and paste it into the live window obviously and then try to generate a figure, so how can I generate a figure, just as I would have done had this data been freshly generated in the live window by using the relevant commands directly underneath it.

Many thanks
 
Physics news on Phys.org
Paste the data into a text file, or into Excel then save as CSV or text, then load from the text file?
 
Ibix said:
Paste the data into a text file, or into Excel then save as CSV or text, then load from the text file?
and then if i past the code i previusly was, under the originally gerneated data, it will genreate the plots?
Could I paste this from the text file in the live window, or would i need to call upon this file?
 

Similar threads

Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 12 ·
Replies
12
Views
4K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 3 ·
Replies
3
Views
7K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 9 ·
Replies
9
Views
5K