Réponse apportée
Why is my if statement making the values of a previous array disappear?
_break_ will terminate your _for_ loop, and it won't continue all the way to _ymax_. Perhaps you mean you use _continue_? ...

plus de 11 ans il y a | 0

Réponse apportée
How do I make multiple x axes?
Did you try the searching the <http://www.mathworks.com/matlabcentral/fileexchange/ File Exchange>? There is a <http://www.math...

plus de 11 ans il y a | 0

Réponse apportée
ode23s gives different results when run inside for loop
I'm not sure I know exactly what your output should look like, but I do see a couple differences between your "single" and "loop...

plus de 11 ans il y a | 1

| A accepté

Réponse apportée
Querry regarding simulink . It is not giving the desired results.
The syntax (-5 < u1 < 5) does not do what you think it does. You mean (-5 < u1) & (u1 < 5). MATLAB evaluates...

plus de 11 ans il y a | 0

Réponse apportée
How to advance input signal by one sample period?
If you mean to delay a signal by one sample period in Simulink, then use the <http://www.mathworks.com/help/simulink/slref/memor...

plus de 11 ans il y a | 0

Réponse apportée
Simscape Model with discrete control (simulation and PIL)
If you have purchased <http://www.mathworks.com/products/simpower/ SimPowerSystems>, it comes with many <http://www.mathworks.co...

plus de 11 ans il y a | 0

Réponse apportée
I have to plot a graph where +1 and -1 are located at same point on x axis. How can I do that?
Here is how I would do it. Your proposed tick values don't work perfectly with your data, but you can adjust it. % given da...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
Recreating Vlookup from excel
Purely numeric and all index of A are guaranteed to be in B? A = [ 1; 2; 6; 7]; B = [1 56.7; 2 45.1; 3 65.7; 4 76.1; 5 3...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
there is a error for solving equations
When I copy/paste your code, I get that the '–' is the wrong character: it is the 'dash' (U+2013) character instead of the 'minu...

plus de 11 ans il y a | 0

Réponse apportée
Querying if a model contains a block with a value
It depends on the block type, but for a constant block the quick answer is get_param('Model_Name/Subsystem/Subsubsytem/Cons...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
Double integrate a precise series of numbers
I am going to guess that these are accelerations sampled at given times. The poster wants the integral over time to find the ve...

plus de 11 ans il y a | 1

| A accepté

Réponse apportée
Simulink compiler issue with SDK 8 and Matlab R2013b on windows
Go to the <http://www.mathworks.com/support/compilers/R2013b/index.html?sec=win64 supported compilers> page. It doesn't show SD...

plus de 11 ans il y a | 1

Réponse apportée
Solve: Solution not satisfying the equation
Sometimes you can reshape the problem to make things easier for the solver. In this case, center the circle at zero by redefini...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
pulse width modulation, get values from the previous block
Go to the <http://www.mathworks.com/matlabcentral/fileexchange/ File Exchange> and search for "Programmable Pulse Generator"....

plus de 11 ans il y a | 0

Réponse apportée
SimPowerSystems : How to select motor preset from Matlab script ?
1) First try this so that you know how to do this yourself next time. Use the command get_param(block_handle,'ObjectPara...

plus de 11 ans il y a | 0

Réponse apportée
How to use loop and solve numerical question and make variable with numerical variables
Here is a hint on using for loops: x(1)=1; for index=1:10 x(index+1)=x(index)+x(index)*10; end disp(x) You...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
Two Solar panel in parallel
1) Purchase <http://www.mathworks.com/products/simpower/index.html SimPowerSystems> and then start with one of the <http://www.m...

plus de 11 ans il y a | 0

Réponse apportée
How can I model an integrated system of solar cell and wind mill in simscape?
SimPowerSystems comes with many <http://www.mathworks.com/help/physmod/sps/examples_v2/#renewable-energy examples> to get you st...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
a method to call matlab code from a language programming
Have you looked at the <http://www.mathworks.com/help/matlab/call-matlab-com-automation-server.html MATLAB COM Automation Server...

plus de 11 ans il y a | 1

Réponse apportée
optimisation of simulink parameters
Your objective function should probably # Set the values of the parameters in your model to those passed in from your optim...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
import C code into matlab
There are some well-documented examples here: <http://www.mathworks.com/help/matlab/write-cc-mex-files.html MEX Examples and ...

plus de 11 ans il y a | 1

Réponse apportée
More plot area ezplot
Type help ezplot to learn more ways to use ezplot. You will see the following statement: ezplot(FUN,[A,B]) plots...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
help in pulses matlab simulink
<http://www.mathworks.com/help/simulink/slref/pulsegenerator.html Pulse Generator>

plus de 11 ans il y a | 0

Réponse apportée
Best way to make a matlab - simulink closed loop simulation
<http://www.mathworks.com/help/simulink/slref/sim.html To call Simulink from MATLAB:> simout=sim('modelname'); <http://...

plus de 11 ans il y a | 0

Réponse apportée
3D plot in a circle
<http://www.mathworks.com/matlabcentral/fileexchange/13200-3d-polar-plot File Exchange - 3D Polar Plot>

plus de 11 ans il y a | 0

Réponse apportée
Trying to plot steady state, transient, total response but I can't seem to get it to work.
%% Initial Conditions zeta = 0.05; r = 0.3; naturalfreq = 3.198; dampfreq = 3.194; phi = 0.033; X = 0.048; ...

plus de 11 ans il y a | 0

Réponse apportée
Removing rows with [] in cell array
data(cellfun(@(x) isempty(x), data(:,3)),:)=[]

plus de 11 ans il y a | 1

| A accepté

Réponse apportée
Change the color of data in legend??
Put your labels in the same order as the data you want it to match. legend('V1 Angle','V2 Angle','V3 Angle')

plus de 11 ans il y a | 0

Réponse apportée
Parameters from MATLAB function in Simulink
It depends on how you want to manage the scope of _vxin_ . Simple option: vxin=value; sim('diagram'); or maybe y...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
Using GPIB to connect spectrum analyzer to PC
" <http://www.mathworks.com/products/instrument/ Instument Control Toolbox> lets you connect MATLAB® directly to instruments suc...

plus de 11 ans il y a | 0

Charger plus