Community Profile

sadel


86 total contributions since 2009

Professional Interests: Industrial automations

Contact

Contributions in
View by

Question


how can I print out all the variables of my code?
Hello, how can I print on my screen all my variables of my code? I'm trying to avoid to use twice the same variables and for ...

3 years ago | 1 Answers | 0

1

answer

Question


How can I fill in a matrix with the data of a multiline edittext box?
Hello, I have a gui with a multiline edittext box and I want for example to write on three lines 9 numbers (3 numbers on each ...

3 years ago | 1 Answers | 0

1

answer

Question


How big is the polynomial that sym2poly can hold?
How big is the polynomial that sym2poly can hold? For example, I have this y=sym2poly(sym('x^1000')) and it's ok. But if...

5 years ago | 2 Answers | 0

2

answers

Question


How do I insert horizontal scroll bar on an 'edit text box'?
Hi!!! I have an edit text box. I changed the 'max' value to '2' to have a multiline edit box but I need to have a horizontal sc...

5 years ago | 1 Answers | 0

1

answer

Question


how can I convert a decimal to an integer?
how can I convert a decimal to an integer? example 1.232422->1 2123.43242322->2123

5 years ago | 2 Answers | 0

2

answers

Question


How can I cut some digits from a number?
How can I cut some digits from a number like this 0.0000005566? How can I keep only the first 4 decimal digits? I use vpa bu...

5 years ago | 1 Answers | 0

1

answer

Question


Why do I receive "Cell contents reference from a non-cell array object." error?
Why do I receive "Cell contents reference from a non-cell array object." error when I execute this code? handles.num=1; ha...

5 years ago | 1 Answers | 0

1

answer

Question


what does {:} mean?
Hi all!! when I use a variable with this {:}, what does it mean?

5 years ago | 1 Answers | 0

1

answer

Question


How can I round off the coefficients of sys2 polynomial(num/den)?
num=[1 0 0]; den=[1 0 0 1]; sys=tf(num,den) sysd=c2d(sys,0.3) sys2=d2c(sysd)

5 years ago | 1 Answers | 0

1

answer

Question


I'm trying to convert a system from c2d and then from d2c but the results are not the same. Why? There is no delay!
My system is: s^2/s^3+1 My code is: num=[1 0 0]; den=[1 0 0 1]; sys=tf(num,den) sysd=c2d(sys,0.3) sys2=d2c(sysd) Why is th...

5 years ago | 1 Answers | 0

1

answer

Question


How can I plot a bode diagram with random color?
What should I add to this code to have a random color? sys=tf(1,[1 1]) bode(sys)

5 years ago | 5 Answers | 0

5

answers

Answered
How can I fix this error?
Let's say that we have this system in open loop. sys=tf([1 1 1 1 1 1],[1]); I receive the same error because it is unstab...

5 years ago | 0

Question


How can I fix this error?
Hi all! How can I fix this error? sys=tf([1 1 1 1],[1 1]); t=0:0.1:10; step(sys,t) ??? Error using ==> DynamicSystem.st...

5 years ago | 4 Answers | 0

4

answers

Answered
How can I hold the previous "legend" on a plot?
here is the answer that I was looking for: x=0:.01:10; plot(x, sin(x), 'DisplayName','sin'); legend('-DynamicLegend'); ...

5 years ago | 2

| accepted

Posted


Why these two codes produce different graphs? How can I make the second graph be like the first?
1st: step(c2d(tf(1,[1 1]),0.3),t); 2nd: t=0:0.3:10; [y,t]=step(c2d(tf(1,[1 1]),0.3),t); plot(t,y)

5 years ago | 752 views

Question


Why these two codes produce different graphs? How can I make the second graph be like the first?
Why these two codes produce different graphs? How can I make the second graph be like the first? 1st: t=0:0.3:10; step(c2d...

5 years ago | 2 Answers | 0

2

answers

Question


How can I hold the previous "legend" on a plot?
I use the "hold" function to hold the previous plots. But how can I hold the previous legends, too?

5 years ago | 3 Answers | 0

3

answers

Question


How can I convert a system with delay from continuous to discrete and from discrete to continuous and the result be the same?
How can I run this code and the first and the third results be the same? sys=tf(1,[1 1],'InputDelay',0.4) sysd=c2d(sys,0...

5 years ago | 4 Answers | 0

4

answers

Question


how can I extract internal delay from a discrete system when I convert it to continuous with d2c?
how can I extract internal delay from a discrete system when I convert it to continuous with d2c?

5 years ago | 1 Answers | 0

1

answer

Posted


Help!!!! discrete to continuous error
Here is my code. I have a button a pop up menu and a displayeditbox.I use the button to insert the numerator and denominator of ...

5 years ago | 724 views

Question


Is there a fuction double2str or something like this?
Is there a fuction double2str or something like this?

5 years ago | 1 Answers | 0

1

answer

Answered
Which function returns the order of a transfer function?
Ok I found it myself: order(sys)

5 years ago | 1

| accepted

Question


Which function returns the order of a transfer function?
Which function returns the order of a transfer function?

5 years ago | 1 Answers | 0

1

answer

Question


Why do I receive an error when I run this code?
Why do I receive an error when I run this code? sys=tf([1],[1 1],'InputDelay',2) sysd=c2d(sys,0.5) ...

5 years ago | 2 Answers | 0

2

answers

Question


How can I convert num and den to strings?
How can I convert num and den to strings? sys=tf([1],[1 1],'InputDelay',2) sysd=c2d(sys,0.5) [num,den]=tfdata(sysd)...

5 years ago | 1 Answers | 0

1

answer

Question


How can I turn s/s to 1?
I run this code and if I click yes without change anything in the inputdlg, I receive 's/s'. How can I return this to '1' in t...

5 years ago | 2 Answers | 0

2

answers

Question


What is wrong with my exit button?
I have this code on an exit button and when I hit the button and select 'yes' to save the data I receive the figure again....

5 years ago | 1 Answers | 0

1

answer

Question


How can I reach the code of the default print tool?
I have a menu button and a default print tool. I wanna make the menu button react like the default print tool. How can I connect...

5 years ago | 1 Answers | 0

1

answer

Answered
How can I create a function which evaluate only strings which represent only mathematical functions?
Well, I think I found the answer. Tell me your opinion!!! t=0:0.1:10; insertfunction='cos(2*pi*t)'; gh=symvar(insertfun...

5 years ago | 0

Question


Where can I find which "common functions" symvar identify?
The Description of symvar says: symvar 'expr' searches the expression, expr, for identifiers other than i, j, pi, inf, nan, eps,...

5 years ago | 1 Answers | 0

1

answer

Load more