Matlab help please (generating a plot from this data)

  • Context: MATLAB 
  • Thread starter Thread starter binbagsss
  • Start date Start date
  • Tags Tags
    Data Matlab Plot
Click For Summary
SUMMARY

The discussion centers on generating plots in MATLAB from data saved in PDF format. Users recommend converting the data into a text file or CSV format using Excel, which can then be loaded into MATLAB. Once the data is properly formatted and imported, users can execute their existing plotting commands to visualize the data. This method ensures that users can replicate the plotting process as if the data were generated live within MATLAB.

PREREQUISITES
  • Familiarity with MATLAB syntax and commands for plotting
  • Basic knowledge of data formats, specifically CSV and text files
  • Experience with Excel for data manipulation
  • Understanding of how to import data into MATLAB from external files
NEXT STEPS
  • Learn how to use MATLAB's readtable function for importing CSV files
  • Explore MATLAB's plotting functions such as plot, scatter, and histogram
  • Investigate data preprocessing techniques in MATLAB to clean and format data
  • Study MATLAB's documentation on file I/O operations for better data management
USEFUL FOR

Data analysts, researchers, and engineers who need to visualize data in MATLAB, especially those transitioning from PDF data formats to MATLAB-compatible formats.

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
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 12 ·
Replies
12
Views
4K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 3 ·
Replies
3
Views
8K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K