Community Profile

photo

sadel


Active since 2011

Professional Interests: Industrial automations

Statistics

  • First Review
  • Thankful Level 4

View badges

Content Feed

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 ...

10 years ago | 1 answer | 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 ...

10 years ago | 1 answer | 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...

13 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...

13 years ago | 1 answer | 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

13 years ago | 4 answers | 0

4

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...

13 years ago | 1 answer | 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...

13 years ago | 1 answer | 0

1

answer

Question


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

13 years ago | 1 answer | 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)

13 years ago | 1 answer | 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...

13 years ago | 1 answer | 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)

13 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...

13 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...

13 years ago | 5 answers | 0

5

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'); ...

13 years ago | 16

| accepted

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...

13 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?

13 years ago | 4 answers | 0

4

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...

13 years ago | 6 answers | 0

6

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?

13 years ago | 1 answer | 0

1

answer

Question


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

13 years ago | 1 answer | 1

1

answer

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

13 years ago | 2

| accepted

Question


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

13 years ago | 1 answer | 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) ...

13 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)...

13 years ago | 1 answer | 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...

13 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....

13 years ago | 1 answer | 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...

13 years ago | 1 answer | 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...

13 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,...

13 years ago | 1 answer | 0

1

answer

Question


how can I convert a string to an expression which "symvar" can search for identifiers?
how can I convert a string to an expression which "symvar" can search for identifiers? I use this: symvar 'cos(pi*x - beta...

13 years ago | 2 answers | 0

2

answers

Question


How does symvar work?
Hi all! symvar 'cos(2*pi*t)' How can I make symvar to not return 't'? I use this: syms t but no success.

13 years ago | 1 answer | 0

1

answer

Load more