Matlab staring with basic.........

steveb

Joined Jul 3, 2008
2,436
then what the use of learning matlab if we can do easily in stimulator software??
like C to assembly.!!
It's just a different tool for a different job. Matlab is good for understanding, designing and optimizing LTI systems at the system level, rather than at the component level. It's more of a mathematical tool that allows rigorous analysis in both continuous time and discrete time systems. Particularly useful is the ability to model both the continuous time circuit performance and the digital control system that would be implemented with a microprocessor. Many simulators, like SPICE don't allow this. Modern systems are often digitally controlled, so simulating both aspects of the system is critical.

For nonlinear systems, Simulink offers similar capability. Matlab can do all the nonlinear stuff too, but it is not as easy and user friendly as Simulink for this application.

If you just need to simulate a circuit, then SPICE (or other similar program) is a good tool for that job. But, it's difficult to design with SPICE alone. SPICE design often amounts to tweaking component values, which is a tedious process if you have many component values to optimize.

Personally, I use Simulink for all my circuit modeling, but this is much more tedious than using SPICE because you have to write out all the equations. However, as an engineer, the process of writing the equations is a useful step for design, so it's really not a problem for me. However, I understand that most people would rather use SPICE to get quick answers.
 

steveb

Joined Jul 3, 2008
2,436
any example of it.??
Sure, digital control of any analog system gives thousands of examples.

For example, temperature control of a laser diode. This could be implemented with a digital version of a PI controller. The physics of the Peltier cooler, thermistor and heat flow can be modeled as an analog system, including the thermal load of the laser power dissipation (which is dependent on current). The controller discrete time math, with considerations of sample time and loop dynamics, can all be accurately modeled in Matlab or Simulink. The end result is one full system model that includes all important aspects of the system that would impact stability and sensitivity.
 

Thread Starter

RRITESH KAKKAR

Joined Jun 29, 2010
2,829
OK, we use GUI can we make program like a calculator.
but we will use this in another PC where Mat lab is not installed, it will work??
 

Jgb5067

Joined Aug 1, 2011
16
OK, we use GUI can we make program like a calculator.
but we will use this in another PC where Mat lab is not installed, it will work??
It won't work unless you have matlab installed. you could install Scilabs (which is a free open source matlab) and convert it and try to run it there. Matlab to Scilab scripts aren't always perfect but they work most of the time with a few minor changes. if i have matlab i will use it over scilabs, but its nice to be able to work in scilabs when i dont have access to the school computers.

BTW im not sure how GUI's designed in Matlab run in Scilabs, if you try it let me know how it turns out.
 
It won't work unless you have matlab installed. you could install Scilabs (which is a free open source matlab) and convert it and try to run it there. Matlab to Scilab scripts aren't always perfect but they work most of the time with a few minor changes. if i have matlab i will use it over scilabs, but its nice to be able to work in scilabs when i dont have access to the school computers.

BTW im not sure how GUI's designed in Matlab run in Scilabs, if you try it let me know how it turns out.
Great!Thank you for sharing the useful info.
 
Top