Azzera filtri
Azzera filtri

Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

I don't get this

2 visualizzazioni (ultimi 30 giorni)
Sreet Swastik
Sreet Swastik il 29 Mar 2013
Chiuso: MATLAB Answer Bot il 20 Ago 2021
global Kp;
>> Kp=5
Kp =
5
>> global e ;
>> e = 2;
>> func = Kp*e
func =
10
>> q= int(Kp*e, e, 0, 2)
??? Undefined function or method 'int' for input arguments of type 'double'.
  1 Commento
the cyclist
the cyclist il 29 Mar 2013
In the future, you might want to give your questions a more meaningful title.

Risposte (1)

Walter Roberson
Walter Roberson il 29 Mar 2013
int() is a function from the symbolic toolbox, that applies only to symbolic expressions (or character strings that represent symbolic expressions.) I suggest trying
syms e
q = int(Kp*e, e, 0, 2)

Questa domanda è chiusa.

Tag

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by