Risposto
I have only non-linear eqality constraints
Did you try making it empty? For example: function [c,ceq]=nonLinearConstraints(x) c=[]; ceq=...

circa 9 anni fa | 1

Risposto
Working Backwards with Simulink?
<http://www.mathworks.com/products/sysid/ System Identification Toolbox> You might want to start by watching the webinar.

circa 9 anni fa | 0

| accettato

Risposto
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...

circa 9 anni fa | 0

Risposto
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,...

oltre 9 anni fa | 0

Risposto
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...

oltre 9 anni fa | 0

Risposto
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...

oltre 9 anni fa | 0

| accettato

Risposto
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...

oltre 9 anni fa | 0

| accettato

Risposto
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...

oltre 9 anni fa | 0

Risposto
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 ...

oltre 9 anni fa | 0

Risposto
How to get 2 angle values for an asin?
>> syms x >> solve('0.5 = sin(x)',x) ans = 0.52359877559829887307710723054658 2.617993877991494365385...

oltre 9 anni fa | 0

| accettato

Risposto
How to create a vector of length m+1?
zeros(1,m+1)

oltre 9 anni fa | 0

Risposto
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...

oltre 9 anni fa | 0

Risposto
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...

oltre 9 anni fa | 0

Risposto
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...

oltre 9 anni fa | 0

Risposto
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...

oltre 9 anni fa | 1

Risposto
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...

oltre 9 anni fa | 0

| accettato

Risposto
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: ...

oltre 9 anni fa | 0

| accettato

Risposto
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...

oltre 9 anni fa | 0

Risposto
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

oltre 9 anni fa | 1

| accettato

Risposto
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...

oltre 9 anni fa | 0

| accettato

Risposto
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...

oltre 9 anni fa | 0

Risposto
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...

oltre 9 anni fa | 0

| accettato

Risposto
SimPowerSystem, how can I use parameters inside a block?
<</matlabcentral/answers/uploaded_files/20284/Matlab_Define_Lm.JPG>>

oltre 9 anni fa | 1

| accettato

Risposto
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...

oltre 9 anni fa | 0

Risposto
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')

oltre 9 anni fa | 1

| accettato

Risposto
Can I supress an 'ans' output without making a void function?
Use a semicolon. TimeConversion(51624); or [out1, out3] = TimeConversion(82000);

oltre 9 anni fa | 3

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

oltre 9 anni fa | 0

Risposto
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...

oltre 9 anni fa | 4

Risposto
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...

oltre 9 anni fa | 0

Risposto
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...

oltre 9 anni fa | 0

| accettato

Carica altro