已回答
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_? ...

10 years 前 | 0

已回答
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...

10 years 前 | 0

已回答
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...

10 years 前 | 1

| 已接受

已回答
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...

10 years 前 | 0

已回答
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...

10 years 前 | 0

已回答
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...

10 years 前 | 0

已回答
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...

10 years 前 | 0

| 已接受

已回答
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...

10 years 前 | 0

| 已接受

已回答
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...

10 years 前 | 0

已回答
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...

10 years 前 | 0

| 已接受

已回答
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...

10 years 前 | 1

| 已接受

已回答
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...

10 years 前 | 1

已回答
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...

10 years 前 | 0

| 已接受

已回答
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"....

10 years 前 | 0

已回答
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...

10 years 前 | 0

已回答
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...

10 years 前 | 0

| 已接受

已回答
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...

10 years 前 | 0

已回答
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...

10 years 前 | 0

| 已接受

已回答
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...

10 years 前 | 1

已回答
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...

10 years 前 | 0

| 已接受

已回答
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 ...

10 years 前 | 1

已回答
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...

10 years 前 | 0

| 已接受

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

10 years 前 | 0

已回答
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://...

10 years 前 | 0

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

10 years 前 | 0

已回答
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; ...

10 years 前 | 0

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

10 years 前 | 1

| 已接受

已回答
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')

10 years 前 | 0

已回答
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...

10 years 前 | 0

| 已接受

已回答
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...

10 years 前 | 0

加载更多