Changing the Filter Title created by fvtool

16 Ansichten (letzte 30 Tage)
Craig Aarseth
Craig Aarseth am 18 Mär. 2019
Kommentiert: Jan Kappen am 15 Nov. 2022
b1 = firls(17, [0 0.1 0.25 1], [1 1 0 0]);
h3 = fvtool (b1);
h3.NormalizedFrequency = 'off';
h3.fs = 720; % Hz sample rate.
h3.CurrentAxes.XLim = [ 0 130 ]; %
h3.CurrentAxes.YLim = [-60 1 ]; % +1 to be able to see ripple
h3.Name = 'Test Least Square Implementation';
%The plot that is created has the vertical axis labeled "magnitude (dB)"". This is fine
% The plot that is created has a title of "Magnitude Response (dB)". I would like to replace that title with something less redundant with the y-axis text. In a normal figure I can change the title but that property is not availalble. If I click on the title I can see it is a 'primative' property. It's not obvious how to change it. Perhaps it's not changeable.
The h3.Name just sets the title of the tab, not the figure itself.
How can I change the figure title?
  1 Kommentar
Jan Kappen
Jan Kappen am 15 Nov. 2022
Even with R2022b the problem remains. The fvtool handle can be used to modify a few settings, but not the figure's title. Why?
Is there a programmatical way to "pop out", i.e. to program a click on "send to figure"?

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Abhishek Singh
Abhishek Singh am 25 Mär. 2019
I tried the same code on my MATLAB. It seems to me that you can change the title of the figure with GUI, and not only title, you can change the Y-axis label and X-axis label too.
After the plot pops up there is an Edit option just beside the Fileoption. Click on Edit, then click on the first option Edit Plot, after doing this you can change the name of anything present in the figure by double clicking on it.
I’ve also attached the screenshot to do the same as I’ve changed the title and Y-axis to “Edited Text” and “Edited Text on Y axis” as you can see in the picture.
Screenshot (28).png

Produkte


Version

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by