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

quasi 10 anni fa | 0

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

quasi 10 anni fa | 0

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

quasi 10 anni fa | 1

| accettato

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

quasi 10 anni fa | 0

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

quasi 10 anni fa | 0

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

quasi 10 anni fa | 0

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

quasi 10 anni fa | 0

| accettato

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

quasi 10 anni fa | 0

| accettato

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

quasi 10 anni fa | 0

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

quasi 10 anni fa | 0

| accettato

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

quasi 10 anni fa | 1

| accettato

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

quasi 10 anni fa | 1

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

quasi 10 anni fa | 0

| accettato

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

quasi 10 anni fa | 0

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

quasi 10 anni fa | 0

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

quasi 10 anni fa | 0

| accettato

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

quasi 10 anni fa | 0

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

quasi 10 anni fa | 0

| accettato

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

quasi 10 anni fa | 1

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

quasi 10 anni fa | 0

| accettato

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

quasi 10 anni fa | 1

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

quasi 10 anni fa | 0

| accettato

Risposto
help in pulses matlab simulink
<http://www.mathworks.com/help/simulink/slref/pulsegenerator.html Pulse Generator>

quasi 10 anni fa | 0

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

quasi 10 anni fa | 0

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

quasi 10 anni fa | 0

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

quasi 10 anni fa | 0

Risposto
Removing rows with [] in cell array
data(cellfun(@(x) isempty(x), data(:,3)),:)=[]

quasi 10 anni fa | 1

| accettato

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

quasi 10 anni fa | 0

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

quasi 10 anni fa | 0

| accettato

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

quasi 10 anni fa | 0

Carica altro