Matlab - Undefined function

 
Vista:

Undefined function

Publicado por Cheyn (3 intervenciones) el 09/09/2012 20:39:06
Buenas tardes, estoy teniendo problemas con unas funciones en MATLAB, antes de escribirles el error, recalco que en la U estaba usando esas librerías sin problemas, pero a la hora de usarlas en mi computadora me están dando problemas.
Tengo una MATLAB Portable 7.14.0.739 y lo que me pasa es lo siguientes, este es el error:
Undefined function 'poly2str' for input arguments of type 'double'.

No solo me pasa con esa librería, también con printsys... Es mi primera vez en este foro, me disculpan si rompo alguna regla y de verdad que apreciaría alguna ayuda, de antemano muchas gracias.
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder
Imágen de perfil de JOSE JEREMIAS CABALLERO
Val: 6.975
Oro
Ha mantenido su posición en Matlab (en relación al último mes)
Gráfica de Matlab

Undefined function

Publicado por JOSE JEREMIAS CABALLERO (5917 intervenciones) el 09/09/2012 22:47:48
Hola.
Sigue estos pasos.
Si te sale algun error, es porque esas funciones no se encuentran en tu portable. Posdata estoy asumiendo que estas ejecutando correctamente tu codigo.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
>> help poly2str
 poly2str Return polynomial as string.
    S = poly2str(P,'s') or S=poly2str(P,'z') returns a string S
    consisting of the polynomial coefficients in the vector P
    multiplied by powers of the transform variable 's' or 'z'.
 
        Example: poly2str([1 0 2],'s') returns the string  's^2 + 2'.
 
    [S,LEN] = poly2str(P,'s') also returns the maximum wrapped length
    of the polynomial.
 
    See also: printsys.
 
>> P1=poly2str([1 0 2],'s')
 
P1 =
 
   s^2 + 2
 
>> help poly2sym
 poly2sym Polynomial coefficient vector to symbolic polynomial.
    poly2sym(C) is a symbolic polynomial in 'x' with coefficients
    from the vector C.
    poly2sym(C,'V') and poly2sym(C,SYM('V') both use the symbolic
    variable specified by the second argument.
 
    Example:
        poly2sym([1 0 -2 -5])
    is
        x^3-2*x-5
 
        poly2sym([1 0 -2 -5],'t')
    and
        t = sym('t')
        poly2sym([1 0 -2 -5],t)
    both return
        t^3-2*t-5
 
    See also sym/sym2poly, polyval.
 
    Overloaded methods:
       sym/poly2sym
 
    Reference page in Help browser
       doc poly2sym
 
>> P2=poly2sym([1 0 2],'s')
 
P2 =
 
s^2 + 2
 
>> whos
  Name      Size            Bytes  Class    Attributes
 
  P1        1x10               20  char
  P2        1x1               112  sym
  ans       1x10               20  char
 
>> version
 
ans =
 
7.14.0.739 (R2012a)


Pero deberias poner como lo estas ejecutando, porque al parecer en la forma de ejecutar estas cometiendo un error

Saludos.
JOSE JEREMIAS CABALLERO
Asesor de Proyectos con Matlab
programador en matlab
Servicios de programacion Matlab
[email protected]

http://matlabcaballero.blogspot.com
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

Undefined function

Publicado por Cheyn (3 intervenciones) el 10/09/2012 02:32:13
>> help poly2str

poly2str not found.

Use the Help browser search field to search the documentation, or
type "help help" for help command options, such as help for methods.

Tienes razón, al parecer el portable no contiene la librería, ¿existe alguna manera de añadirla, o tendré que descargar la versión completa?

Creo que está demás que escriba como lo ejecuto, pero por si las moscas ahí te va:

>> p=[1 3 11 -7 -36]

p =

1 3 11 -7 -36

>> poly2str(p,'s')
Undefined function 'poly2str' for input arguments of type 'double'.

Muchas gracias por tu ayuda.
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar
Imágen de perfil de JOSE JEREMIAS CABALLERO
Val: 6.975
Oro
Ha mantenido su posición en Matlab (en relación al último mes)
Gráfica de Matlab

Undefined function

Publicado por JOSE JEREMIAS CABALLERO (5917 intervenciones) el 10/09/2012 02:50:39
Entonces usa.
el otro comando:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
>> help poly2sym
 poly2sym Polynomial coefficient vector to symbolic polynomial.
    poly2sym(C) is a symbolic polynomial in 'x' with coefficients
    from the vector C.
    poly2sym(C,'V') and poly2sym(C,SYM('V') both use the symbolic
    variable specified by the second argument.
 
    Example:
        poly2sym([1 0 -2 -5])
    is
        x^3-2*x-5
 
        poly2sym([1 0 -2 -5],'t')
    and
        t = sym('t')
        poly2sym([1 0 -2 -5],t)
    both return
        t^3-2*t-5
 
    See also sym/sym2poly, polyval.
 
    Overloaded methods:
       sym/poly2sym
 
    Reference page in Help browser
       doc poly2sym
 
>> P2=poly2sym([1 0 2],'s')
 
P2 =
 
s^2 + 2
 
>> p=[1 3 11 -7 -36]
 
p =
 
     1     3    11    -7   -36
 
>> P2=poly2sym(p,'s')
 
P2 =
 
s^4 + 3*s^3 + 11*s^2 - 7*s - 36




Saludos.
JOSE JEREMIAS CABALLERO
Asesor de Proyectos con Matlab
programador en matlab
Servicios de programacion Matlab
[email protected]

http://matlabcaballero.blogspot.com
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

Undefined function

Publicado por Cheyn (3 intervenciones) el 18/09/2012 21:03:03
Al final tuve que descargar la versión completa, gracias por tu ayuda, eres muy amable
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar