
How to convert matlab file into a voltage signal in simulink
    4 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Saurabh Sakpal
 el 18 de Dic. de 2014
  
    
    
    
    
    Respondida: Saurabh Sakpal
 el 19 de Dic. de 2014
            Hi, I have a code where it is a sin wave for first 0.6 seconds and 0 for the next 0.4 seconds. Which i have created using if statements etc. so its a matlab file. Now thing is i want to generate this as a voltage supply, how do i import this matlab file into the voltage supply. I know there is a 'from workspace' and 'from file' function. but i have no idea how to use this. thanks.
0 comentarios
Respuesta aceptada
  Orion
      
 el 18 de Dic. de 2014
        And here comes the debug problems :).
so what you need to do is :

6 comentarios
Más respuestas (4)
  Orion
      
 el 18 de Dic. de 2014
        I already answered you in your previous post, it's a best practice to do it directly with Simulink blocks.
But if you insist to use directly an external mfile, you need to use another block : interpreted matlab function
Ver también
Categorías
				Más información sobre Choose and Parameterize Blocks 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!


