How to quickly display the magnitude of a complex signal that I have in the workspace (or any other function of it)?
9 views (last 30 days)
Show older comments
Hi,
I often deal with complex signals of which I need to plot the magnitude. I would like to know if there is a quick way (like customizing the MATLAB plots tab, or creating a favorite command) to do it.
For the plots tab, is it there a way to customize it by adding personalized plots?
In case of creating a favorite command, how do I specify in its code the variable name that is currently being selected in the workspace?
Thanks in advance,
Matteo.
2 Comments
Davide Masiello
on 15 Aug 2022
Could you show a minimal example?
That'd help understading your objective better.
Answers (1)
Walter Roberson
on 15 Aug 2022
See the aswer from PositronDude at https://stackoverflow.com/questions/3533074/how-do-you-retrieve-the-selected-text-in-matlab
That answer depends upon the selected text be in the editor. There just might be related tools for the variable editor and for the command line. I am looking at the variable editor now, but I do not currently see any way of finding out what the currently selected variable is.
2 Comments
Walter Roberson
on 15 Aug 2022
I do not yet find any way to do this if what is selected is on the command line -- so far I only see ways to check the command window size, to insert something into the command history, and to execute something on behalf of the user.
See Also
Categories
Find more on 2-D and 3-D Plots 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!