Can somebody give an brief idea where s function's can be used and what is it all about?
    4 visualizzazioni (ultimi 30 giorni)
  
       Mostra commenti meno recenti
    
    s
 il 22 Dic 2016
  
    
    
    
    
    Commentato: Walter Roberson
      
      
 il 24 Dic 2016
            Can somebody give an brief idea where s function's can be used and what is all about?
0 Commenti
Risposta accettata
  Walter Roberson
      
      
 il 22 Dic 2016
        "An S-function is a computer language description of a Simulink block written in MATLAB®, C, C++, or Fortran. C, C++, and Fortran S-functions are compiled as MEX files using the mex utility (see Build MEX File). As with other MEX files, S-functions are dynamically linked subroutines that the MATLAB execution engine can automatically load and execute."
4 Commenti
  Image Analyst
      
      
 il 24 Dic 2016
				
      Modificato: Image Analyst
      
      
 il 24 Dic 2016
  
			I guess your original guess was right Walter. I've added Simulink to the product list above.
  Walter Roberson
      
      
 il 24 Dic 2016
				" Do they (S functions) have anything to do with the Laplace transforms or State space equations"
They could, but they can be most anything. They are a way to call code in Simulink instead of having to implement the code entirely as Simulink blocks.
Più risposte (2)
  Image Analyst
      
      
 il 22 Dic 2016
        s functions, or "sigmoid" curves are often used in logistic regression. The help on glmfit() has an extensive discussion on them. Attached is the demo from the help.

They are used other places too, like when you're talking about the lifetime of innovations/inventions ( https://en.wikipedia.org/wiki/Diffusion_of_innovations ).

If you want more help, you'll probably have to describe the context of where you think you might be using s functions.
2 Commenti
  Walter Roberson
      
      
 il 22 Dic 2016
				Ah, I see now the product Statistics and Machine Learning is attached, so this makes sense.
  Image Analyst
      
      
 il 22 Dic 2016
				I don't have Simulink, so who knows? It could well be both stats and Simulink, couldn't it? Or one or the other. If the original poster ever comes back, maybe it will be clarified.
  KSSV
      
      
 il 22 Dic 2016
        A function is part of code, which you call very often...and you want to avoid coding it every time. A function takes required input's and gives the desired output. In most of the coding software's you find functions. For more details, read the link:
0 Commenti
Vedere anche
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!