답변 있음
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_? ...

11년 초과 전 | 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...

11년 초과 전 | 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...

11년 초과 전 | 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...

11년 초과 전 | 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...

11년 초과 전 | 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...

11년 초과 전 | 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...

11년 초과 전 | 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...

11년 초과 전 | 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...

11년 초과 전 | 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...

11년 초과 전 | 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...

11년 초과 전 | 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...

11년 초과 전 | 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...

11년 초과 전 | 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"....

11년 초과 전 | 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...

11년 초과 전 | 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...

11년 초과 전 | 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...

11년 초과 전 | 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...

11년 초과 전 | 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...

11년 초과 전 | 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...

11년 초과 전 | 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 ...

11년 초과 전 | 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...

11년 초과 전 | 0

| 수락됨

답변 있음
help in pulses matlab simulink
<http://www.mathworks.com/help/simulink/slref/pulsegenerator.html Pulse Generator>

11년 초과 전 | 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://...

11년 초과 전 | 0

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

11년 초과 전 | 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; ...

11년 초과 전 | 0

답변 있음
Removing rows with [] in cell array
data(cellfun(@(x) isempty(x), data(:,3)),:)=[]

11년 초과 전 | 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')

11년 초과 전 | 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...

11년 초과 전 | 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...

11년 초과 전 | 0

더 보기