Answered

I have only non-linear eqality constraints

Did you try making it empty? For example: function [c,ceq]=nonLinearConstraints(x) c=[]; ceq=...

I have only non-linear eqality constraints

Did you try making it empty? For example: function [c,ceq]=nonLinearConstraints(x) c=[]; ceq=...

presque 7 ans ago | 1

Answered

Working Backwards with Simulink?

<http://www.mathworks.com/products/sysid/ System Identification Toolbox> You might want to start by watching the webinar.

Working Backwards with Simulink?

<http://www.mathworks.com/products/sysid/ System Identification Toolbox> You might want to start by watching the webinar.

presque 7 ans ago | 0

| accepted

Answered

Calculate kw/h with Matlab Simulink

Though you did not show your whole circuit, it looks like your current sensor is connected incorrectly. In order to measure cur...

Calculate kw/h with Matlab Simulink

Though you did not show your whole circuit, it looks like your current sensor is connected incorrectly. In order to measure cur...

presque 7 ans ago | 0

Answered

ODE solvers - passing parameters

I think your initial condition should be w0 instead of y0. [t,w]=ode45(@(t,w)nlsmsys(t,w,Mm,M0,ks,alpha,kappa,nmax,mmax,lx,...

ODE solvers - passing parameters

I think your initial condition should be w0 instead of y0. [t,w]=ode45(@(t,w)nlsmsys(t,w,Mm,M0,ks,alpha,kappa,nmax,mmax,lx,...

presque 7 ans ago | 0

Answered

error while executing Mat lab commend

Type _which chebfun2_. If it says the function is not found, it means you may not have the package you need installed. You c...

error while executing Mat lab commend

Type _which chebfun2_. If it says the function is not found, it means you may not have the package you need installed. You c...

presque 7 ans ago | 0

Answered

how to write code for power electronics concepts

<http://www.mathworks.com/help/physmod/sps/examples.html SimPowerSystems Examples> <http://www.mathworks.com/matlabcentral/fi...

how to write code for power electronics concepts

<http://www.mathworks.com/help/physmod/sps/examples.html SimPowerSystems Examples> <http://www.mathworks.com/matlabcentral/fi...

presque 7 ans ago | 0

| accepted

Answered

Allowing no more than 1 invocation of a simulink block (that does I/O) in a model.

Make that block its own model. Reference the block from your top level model. Then set the "Total number of instances allo...

Allowing no more than 1 invocation of a simulink block (that does I/O) in a model.

Make that block its own model. Reference the block from your top level model. Then set the "Total number of instances allo...

presque 7 ans ago | 0

| accepted

Answered

Unable to unclude special characters in the value of a parameter

It used to be called <http://www.mathworks.com/help/matlab/ref/genvarname.html genvarname()>. It looks like in newer versions...

Unable to unclude special characters in the value of a parameter

It used to be called <http://www.mathworks.com/help/matlab/ref/genvarname.html genvarname()>. It looks like in newer versions...

presque 7 ans ago | 0

Answered

How to load this file into my Matlab? Can any1 please help thanks

Type uiimport at the command line Select your file Setup the parameters the way you want to import your data correctly ...

How to load this file into my Matlab? Can any1 please help thanks

Type uiimport at the command line Select your file Setup the parameters the way you want to import your data correctly ...

presque 7 ans ago | 0

Answered

How to get 2 angle values for an asin?

>> syms x >> solve('0.5 = sin(x)',x) ans = 0.52359877559829887307710723054658 2.617993877991494365385...

How to get 2 angle values for an asin?

>> syms x >> solve('0.5 = sin(x)',x) ans = 0.52359877559829887307710723054658 2.617993877991494365385...

presque 7 ans ago | 0

| accepted

Answered

Simulink DC motor model units confusion

Radians are a <http://en.wikipedia.org/wiki/Dimensionless_quantity dimensionless quantity>, since they are calculated as arc len...

Simulink DC motor model units confusion

Radians are a <http://en.wikipedia.org/wiki/Dimensionless_quantity dimensionless quantity>, since they are calculated as arc len...

presque 7 ans ago | 0

Answered

C# matlab lost output after exit() call

In my experience, exit() kills MATLAB. I usually rewrite my code in such a way that I can just use a _return_ from it instead s...

C# matlab lost output after exit() call

In my experience, exit() kills MATLAB. I usually rewrite my code in such a way that I can just use a _return_ from it instead s...

presque 7 ans ago | 0

Answered

in case of permanent magnet synchronous motor what is the need of Tm?

If you are intending to use it as a motor, then you would apply a voltage to it and want to see some mechanical torque (Tm) come...

in case of permanent magnet synchronous motor what is the need of Tm?

If you are intending to use it as a motor, then you would apply a voltage to it and want to see some mechanical torque (Tm) come...

presque 7 ans ago | 0

Answered

GA Optimization running. Error running optimization. Not enough input arguments. what to do

function [s_star,f_star,d_star]=find_optim() nvars=3; %s, f, d options=gaoptimset(@ga); % defaults, but you w...

GA Optimization running. Error running optimization. Not enough input arguments. what to do

function [s_star,f_star,d_star]=find_optim() nvars=3; %s, f, d options=gaoptimset(@ga); % defaults, but you w...

presque 7 ans ago | 1

Answered

View progress of simulation when using sim command

Perhaps try the <http://www.mathworks.com/matlabcentral/fileexchange/9738-simulink-waitbar Simulink Waitbar> example on the File...

View progress of simulation when using sim command

Perhaps try the <http://www.mathworks.com/matlabcentral/fileexchange/9738-simulink-waitbar Simulink Waitbar> example on the File...

presque 7 ans ago | 0

| accepted

Answered

Call a Simulink simulation from shell

Step 1) Write your function in MATLAB that takes your file names and runs your simulation. It would look something like this: ...

Call a Simulink simulation from shell

Step 1) Write your function in MATLAB that takes your file names and runs your simulation. It would look something like this: ...

presque 7 ans ago | 0

| accepted

Answered

How to connect supercapacitor from Simpowersystem and voltage sensor from simscape

SimPowerSystems has it's own <http://www.mathworks.com/help/physmod/sps/powersys/ref/voltagemeasurement.html Voltage Measurement...

How to connect supercapacitor from Simpowersystem and voltage sensor from simscape

SimPowerSystems has it's own <http://www.mathworks.com/help/physmod/sps/powersys/ref/voltagemeasurement.html Voltage Measurement...

presque 7 ans ago | 0

Answered

symbolically differentiating of a function not to be mixed with other constants

syms r c1 c2 p=c1*r+c2/r diff(p,r) _________________ ans = c1 - c2/r^2

symbolically differentiating of a function not to be mixed with other constants

syms r c1 c2 p=c1*r+c2/r diff(p,r) _________________ ans = c1 - c2/r^2

environ 7 ans ago | 1

| accepted

Answered

Struggling With Genetic Algorithms in Matlab

If you have the Global Optimization Toolbox, then there are quite a few tutorials and example projects on the <http://www.mathwo...

Struggling With Genetic Algorithms in Matlab

If you have the Global Optimization Toolbox, then there are quite a few tutorials and example projects on the <http://www.mathwo...

environ 7 ans ago | 0

| accepted

Answered

Multiple Simulations with only one model compile

You mean in Simulink? Yes, that is what the <http://www.mathworks.com/help/simulink/ug/what-is-acceleration.html Accelerator> i...

Multiple Simulations with only one model compile

You mean in Simulink? Yes, that is what the <http://www.mathworks.com/help/simulink/ug/what-is-acceleration.html Accelerator> i...

environ 7 ans ago | 0

Answered

Native Matlab boundary function not working, can someone run it please :)

Those are not the same boundary function, as you can see because the help descriptions are different. The _boundary_ you ha...

Native Matlab boundary function not working, can someone run it please :)

Those are not the same boundary function, as you can see because the help descriptions are different. The _boundary_ you ha...

environ 7 ans ago | 0

| accepted

Answered

SimPowerSystem, how can I use parameters inside a block?

<</matlabcentral/answers/uploaded_files/20284/Matlab_Define_Lm.JPG>>

SimPowerSystem, how can I use parameters inside a block?

<</matlabcentral/answers/uploaded_files/20284/Matlab_Define_Lm.JPG>>

environ 7 ans ago | 1

| accepted

Answered

Matlab 2014a 32-bit mex -setup issue to install Visual 2008 Express edition

It appears that Visual Studio 2008 Express is not compatible with 2014a. It is not in the verbose list you show, nor is it o...

Matlab 2014a 32-bit mex -setup issue to install Visual 2008 Express edition

It appears that Visual Studio 2008 Express is not compatible with 2014a. It is not in the verbose list you show, nor is it o...

environ 7 ans ago | 0

Answered

How do you load a mat file when ou open a model?

In Simulink: File->Model Properties->Callbacks->PreLoadFcn put your m code there, such as: load('myfile.mat')

How do you load a mat file when ou open a model?

In Simulink: File->Model Properties->Callbacks->PreLoadFcn put your m code there, such as: load('myfile.mat')

environ 7 ans ago | 1

| accepted

Answered

Can I supress an 'ans' output without making a void function?

Use a semicolon. TimeConversion(51624); or [out1, out3] = TimeConversion(82000);

Can I supress an 'ans' output without making a void function?

Use a semicolon. TimeConversion(51624); or [out1, out3] = TimeConversion(82000);

environ 7 ans ago | 3

Answered

signal from matlab to simulink

Did you try a <http://www.mathworks.com/help/simulink/slref/fromworkspace.html From Workspace> block?

signal from matlab to simulink

Did you try a <http://www.mathworks.com/help/simulink/slref/fromworkspace.html From Workspace> block?

environ 7 ans ago | 0

Answered

get the Model name which is already opened

>> help gcs gcs Get the full path name of the current Simulink system. gcs returns the full path name of the curren...

get the Model name which is already opened

>> help gcs gcs Get the full path name of the current Simulink system. gcs returns the full path name of the curren...

environ 7 ans ago | 3

Answered

How to use add_block function to add a new block into the subsystem?

Perhaps you need to unlock the libaray? set_param('library_name', 'Lock', 'off'); I can't test it right now, but library...

How to use add_block function to add a new block into the subsystem?

Perhaps you need to unlock the libaray? set_param('library_name', 'Lock', 'off'); I can't test it right now, but library...

environ 7 ans ago | 0

Answered

Executing Simulink Code before the Simulation

1) You can use a <http://www.mathworks.com/help/simulink/slref/clock.html Clock> block with a <http://www.mathworks.com/help/sim...

Executing Simulink Code before the Simulation

1) You can use a <http://www.mathworks.com/help/simulink/slref/clock.html Clock> block with a <http://www.mathworks.com/help/sim...

environ 7 ans ago | 0

| accepted