When I tried to Laplace transform a differential equation, errors appeared, HELP
    4 vues (au cours des 30 derniers jours)
  
       Afficher commentaires plus anciens
    
    Poojitha Ariyathilaka
 le 10 Avr 2020
  
    
    
    
    
    Commenté : Poojitha Ariyathilaka
 le 13 Juin 2020
            syms x t s X F
F=laplace('diff(x(t),t,t)+7*diff(x(t),t)+10*x(t)=20',s)
How this transformation could be done otherwise?
0 commentaires
Réponse acceptée
  Ameer Hamza
      
      
 le 13 Juin 2020
        
      Modifié(e) : Ameer Hamza
      
      
 le 13 Juin 2020
  
      According to documentation, laplace() accepts symbolic inputs. You should input the symbolic equation
syms x(t) s X F
F = laplace(diff(x(t),t,t)+7*diff(x(t),t)+10*x(t)==20, s)
Also, define syms x(t) as a symbolic function. Defining them seperately will give an error.
3 commentaires
  Ameer Hamza
      
      
 le 13 Juin 2020
				I am glad to be of help!
My guess is that you have followed a tutorial for an older version. In the past, char arrays were supported for symbolic toolbox functions, now that support is being removed.
Plus de réponses (0)
Voir également
Catégories
				En savoir plus sur Symbolic Math Toolbox dans Help Center et File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

