Rename the system name in bode plot

조회 수: 13 (최근 30일)
Niclas Miers
Niclas Miers 2020년 4월 28일
댓글: Ameer Hamza 2020년 4월 28일
Hello together, I need some bode plots for my master thesis, but i have issues renaimng the system in the bode plot. When I plot the bode plot and klick on the line it gives me the system name, the frequency and magnitude. Currently Matlab shows me the system name as "untitled1" (picture in appendix), but I want to chage this and define a new text in the editor before plotting, so if I plot the bode diagram, it shows me automatically my setted system name.
The current code I'm using for the plot is:
%% Calculations for open current loop Bode Plot
controller.NUMco = [1];
controller.DENco = [2*(PI_current.T_u^2) 2*PI_current.T_u 0]; %Time constants refer to my system, but I guess they're not relevant here, are they?
controller.Hco = tf(controller.NUMco,controller.DENco);
bode(controller.Hco,'g'),grid minor, hold on;
title('open loop curren control');
I hope someone knows how to do this, I'd be very grateful!

채택된 답변

Ameer Hamza
Ameer Hamza 2020년 4월 28일
Write the name you want in place of 'myName'
controller.Hco = tf(controller.NUMco,controller.DENco,'Name', 'myName');
  댓글 수: 2
Niclas Miers
Niclas Miers 2020년 4월 28일
Thanks a lot !!!
Ameer Hamza
Ameer Hamza 2020년 4월 28일
Glad to be of help.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Frequency-Domain Analysis에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by