Saving Magnitude Response from FDATool

6 visualizaciones (últimos 30 días)
Edward Holmes
Edward Holmes el 8 de En. de 2018
Editada: Edward Holmes el 10 de En. de 2018
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

Respuesta aceptada

Edward Holmes
Edward Holmes el 10 de En. de 2018
Editada: Edward Holmes el 10 de En. de 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

Más respuestas (0)

Categorías

Más información sobre Creating, Deleting, and Querying Graphics Objects en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by