Plotting symbolic equation in matlab
    7 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Md. Ashikur Rahman Any
 el 18 de Abr. de 2021
  
    
    
    
    
    Comentada: Cris LaPierre
    
      
 el 18 de Abr. de 2021
            whats wrong with this?
Here i tried to plot a sybolic equation for range x=[1,20]  but it shows 

How to fix it .and plotting the curve
0 comentarios
Respuesta aceptada
  Cris LaPierre
    
      
 el 18 de Abr. de 2021
        syms eq(x)
eq(x) = (sin(sqrt(x)+5)*exp(sqrt(x)))/sqrt(x)
fplot(eq,[0 20])
2 comentarios
  Cris LaPierre
    
      
 el 18 de Abr. de 2021
				I think you want to use vpasolve. It does not appear to be able to return all solutions at once, so you'll have to define intervals to search in. See this example.
syms x
eq = (sin(sqrt(x)+1)*exp(sqrt(x)))/sqrt(x)==0
vpasolve(eq,x)
% restricting range
vpasolve(eq,x,[0 10])
vpasolve(eq,x,[10 30])
Más respuestas (0)
Ver también
Categorías
				Más información sobre Symbolic Math Toolbox 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!





