drey
Electrical
- Feb 15, 2005
- 3
Hi every one
I am new to matlab but have viewed a lot of tutorials, but i could not find one that shows me how to enter a complicated transfer function like
30s
----------------------
(1 + s/0.2)(1 + s/0.5)
i couldn't find an easy way to represent s/0.2 so i was going to just cheat and do 5s.
but its the brackets on the bottom that are really confusing me, do i have to use the conv command.
i treid and got the following error
>>conv ([5 , 1]),([2, 1])
??? Input argument 'b' is undefined.
Error in ==> C:\MATLAB6p5\toolbox\matlab\datafun\conv.m
On line 15 ==> nb = length(b);
where that was supposed to represent (1 + s/0.2)(1 + s/0.5)
sorry for bothering you with beginner questions
and thanks in advance for your help.
I am new to matlab but have viewed a lot of tutorials, but i could not find one that shows me how to enter a complicated transfer function like
30s
----------------------
(1 + s/0.2)(1 + s/0.5)
i couldn't find an easy way to represent s/0.2 so i was going to just cheat and do 5s.
but its the brackets on the bottom that are really confusing me, do i have to use the conv command.
i treid and got the following error
>>conv ([5 , 1]),([2, 1])
??? Input argument 'b' is undefined.
Error in ==> C:\MATLAB6p5\toolbox\matlab\datafun\conv.m
On line 15 ==> nb = length(b);
where that was supposed to represent (1 + s/0.2)(1 + s/0.5)
sorry for bothering you with beginner questions
and thanks in advance for your help.