Defining Variables in MATLAB Transfer Function?

Click For Summary
SUMMARY

The discussion focuses on defining variables in MATLAB for transfer functions, specifically addressing the transfer function z+b/z^2-1.5*z+0.7. The user attempts to implement this using the command h=tf([1 b],[1 -1.5 0.7],1), but encounters an error related to the variable b. The solution involves correctly defining b as a symbolic variable before using it in the transfer function.

PREREQUISITES
  • Familiarity with MATLAB syntax and commands
  • Understanding of transfer functions in control systems
  • Knowledge of symbolic mathematics in MATLAB
  • Basic concepts of variable definitions in programming
NEXT STEPS
  • Research how to use syms for symbolic variables in MATLAB
  • Explore the tf function for creating transfer functions in MATLAB
  • Learn about error handling in MATLAB when defining variables
  • Investigate the use of symbolic toolbox in MATLAB for control system analysis
USEFUL FOR

This discussion is beneficial for control engineers, MATLAB users, and students working on control systems who need to define and manipulate transfer functions with symbolic variables.

AcesofSpades
Messages
10
Reaction score
0
I have the transfer function z+b/z^2-1.5*z+0.7

I want to write this to MATLAB so :

syms b
h=tf([1 b],[1 -1.5 0.7],1)

The problem is that it returns an error of the variable b.
How can I define it so that I can get an answer?
 
Physics news on Phys.org
Please can anyone help? It is urgent!
 

Similar threads

  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 5 ·
Replies
5
Views
4K
Replies
5
Views
3K
  • · Replies 18 ·
Replies
18
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K