MATLAB Finding Transfer Functions in MatLab 7: How to Access the Control Toolbox

  • Thread starter Thread starter JoshHolloway
  • Start date Start date
  • Tags Tags
    Functions Matlab
AI Thread Summary
To find the transfer function for an RL circuit in MATLAB version 7, the Control System Toolbox is necessary, which may not be included by default. Users can check their MATLAB installation for a "licenses" folder containing a .dat or .lic file to verify if their school has a license for the required toolbox. If the toolbox is not available, it must be purchased from MathWorks, as free versions are not typically accessible. Users are encouraged to consult their campus computing support for assistance with licensing issues. Proper installation of the toolbox is essential for utilizing the 'tf' function to compute transfer functions.
JoshHolloway
Messages
221
Reaction score
0
I am trying to find the transfer function for a simple RL circuit. At my school they don't use version 7, and I was able to find it with this code:
NUM = 20e3;
DEN = [1 20e3];
sys = tf(NUM, DEN)

That found the transfer function for the RL series circuit with a 20K resistor and a Inductor with a value of 500mH. The transfer function was \frac{20000}{s+20000}.

When I try this same code with MatLab version 7, it says that tf is not an undefined function. How do I find the Transfer Function with version 7?
 
Last edited:
Physics news on Phys.org
JoshHolloway said:
I am trying to find the transfer function for a simple RL circuit. At my school they don't use version 7, and I was able to find it with this code:
NUM = 20e3;
DEN = [1 20e3];
sys = tf(NUM, DEN)

That found the transfer function for the RL series circuit with a 20K resistor and a Inductor with a value of 500mH. The transfer function was \frac{20000}{s+20000}.

When I try this same code with MatLab version 7, it says that tf is not an undefined function. How do I find the Transfer Function with version 7?

It's not that version 7 doesn't support transfer functions. You need the right toolboxes. Type help tf. You will get the path where the m file is located. From this you should be able to tell what toolbox you need. I presume you need the control systems toolbox.
 
when i type help tf it says:
tf.m not found.

How do I get it?
 
I found it on the mathworks website, but you have to buy it. Do you know where I can find this toolbox for free?
 
JoshHolloway said:
I found it on the mathworks website, but you have to buy it. Do you know where I can find this toolbox for free?

I'm sure you can figure out how this might be done.
 
I have tried. How about you tell me if you know?
 
Still can't figure out how to get the new toolboxes. Could someone please help?
 
OK. So I found the toolbox I need. It is called the control system toolbox. PLEASE help me figure out how to get it!
 
you have to purchase those toolboxes, thay are easy to download then install.
 
  • #10
JoshHolloway,

Are you using Matlab 7 on campus?

If so, I imagine your school has a license for the control toolbox. You should check in the "licenses" folder in the main Matlab directory.

In that folder there should be either a .dat or .lic file, which needs to be up-to-date in order for you to get all the toolboxes your school has licensed. Check with your campus computing support, and ask them specifically about what I've described.

This advice comes pretty late, I know, but I'd had problems similar to yours before, so I thought I'd register and give my two cents.
 

Similar threads

Replies
2
Views
9K
Replies
3
Views
2K
Replies
1
Views
4K
Replies
1
Views
8K
Replies
1
Views
2K
Replies
2
Views
2K
Back
Top