Saving Magnitude Response from FDATool

5 views (last 30 days)
Hello,
I'd like to save the magnitude response that is created from the FDATool as a .fig file and then export the data use to generate the .fig file into Excel, so that I can plot the magnitude response of the filter in Excel.
Any help would be much appreciated, I can only find ways to export the figure as an image.
Kind Regards
Edward

Accepted Answer

Edward Holmes
Edward Holmes on 10 Jan 2018
Edited: Edward Holmes on 10 Jan 2018
Hello,
After a little bit of digging, I managed to find a solution as follows:
  1. Load the Filter Design and Analysis tool by typing fdatool into the command window
  2. Design your filter
  3. Click 'Full View Analysis' (White Square Icon)
  4. Click 'Edit Plot' (Mouse Pointer Icon)
  5. Click on the dataset you would like to capture
  6. Return to the command window and enter:
x=get(gco,'xdata').';
y=get(gco,'ydata').';
The values used to plot the magnitude response in the FDATool are now stored in two vectors, x and y, these were transposed into columns to make them more manageable. Then simply open the vectors from the workspace, hit 'Ctrl + A' to select all and paste into Excel, or export the data as required: https://uk.mathworks.com/help/stats/export-dataset-arrays.html
Kind Regards
Edward

More Answers (0)

Categories

Find more on Creating, Deleting, and Querying Graphics Objects in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!