sum of polynomials help
    20 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Raiven Balderas
 el 2 de Abr. de 2018
  
    
    
    
    
    Respondida: Walter Roberson
      
      
 el 2 de Abr. de 2018
            Make a Matlab function called polyadd.m that accepts as input the coefficients of two polynomials and outputs the coefficients of the sum of the two polynomials. The first line should read:
function a = polyadd(c,d)
please help
Respuesta aceptada
  Walter Roberson
      
      
 el 2 de Abr. de 2018
        Figure out which vector is shorter. Put enough zeros at the beginning of it to make the two the same length. Add the two, which will now be the same length.
Optionally look at the results and remove leading 0, just in case the coefficients of the two cancel out.
0 comentarios
Más respuestas (0)
Ver también
Categorías
				Más información sobre Polynomials en Help Center y File Exchange.
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

