답변 있음
Want Function: Derivation of (x) returns a function of dx (euler-lagrange equation problem)
Matt, there are a couple of tools for deriving Lagrange's equations on <http://www.mathworks.de/matlabcentral/fileexchange/23037...

대략 12년 전 | 0

답변 있음
Differentiating a function and finding critical points
Will, you could work symbolically to get the job done: syms y t y = t^6 - 4*t^4 - 2*t^3 + 3*t^2 + 2*t; dy = diff(y,t) ...

대략 12년 전 | 1

| 수락됨

답변 있음
How to set a certain ratio for x-y axis?
Toby, I believe you want to change the ticks, correct? Use set(gca,'YTick',-1:0.5:1) after the plot command.

대략 12년 전 | 0

답변 있음
How to model Non linear differential equation in matlab
Khan, simply set the initial condition for |x| to some value other than zero. You can change initial conditions by double-clicki...

대략 12년 전 | 0

| 수락됨

답변 있음
Is there an option to display 2 signals in one vectro scope?
Simply use a multiplexer block (> Commonly Used Blocks: Mux) to combine the two signals into one, then feed into the Scope block...

대략 12년 전 | 0

답변 있음
index out of bounds
As the message implies you are trying to access an element that does not exist. Pixel (1,50) only has 3 neighbours. ... (1,4...

대략 12년 전 | 0

답변 있음
index must be a positive integer or logical
Are you using |max| as a variable somewhere in your code? If not, it's probably in your workspace, so do a clear max and...

대략 12년 전 | 1

| 수락됨

답변 있음
Undefined function 'acker' for input arguments of type 'double'.
Konstantinos, there is a chance that you do not have the corresponding (Control System) toolbox licensed/installed. See <http://...

대략 12년 전 | 0

답변 있음
plotting tan(x) - basic student's question
Will, |tan(x)| has singularities (function goes to infinity) at |pi/2 +/- n*pi|. So when you plot over the range from |-2*pi| to...

대략 12년 전 | 2

| 수락됨

답변 있음
trailing string input must be double or native error
Shiksha, I assume your text file has 250 rows? If that's the case in the statement a(i)=sum(y(i-1),y,y(i+1)) you are acc...

대략 12년 전 | 0

| 수락됨

답변 있음
Problem With Combined for Loop.
Ot, in the command Ang(i,j) = B([A(1,i)-50]:[A(1,i)+50]); you are assigning a *vector* of length 101 to |Ang(i,j)|, which...

대략 12년 전 | 0

| 수락됨

답변 있음
pcolor not showing edge of matrix
Christopher, <http://www.mathworks.de/matlabcentral/answers/65711-bottom-and-left-edges-of-pcolor-plot this answer> should help....

대략 12년 전 | 0

| 수락됨

답변 있음
ODE Piecewise Linear Function Help
In this case have a look at: function my_DE() x0 = 1; tspan = linspace(0,3,1000); [T,X] = ode45(@DE, tspan,...

대략 12년 전 | 1

| 수락됨

답변 있음
unable to input using filename (dxf)
Ellen, use 'my_dxf_file.dxf' with the primes (to make it a string input).

대략 12년 전 | 0

| 수락됨

답변 있음
How to coding and plotting
You mean normalize the plot? sumPH=0 for t=1:Nt mew2 = (inv(Nt)*sum((y2-xhat2))); vari2 = (inv(Nt-1)*sum((xhat2...

대략 12년 전 | 0

| 수락됨

답변 있음
is it possible to get index of reshaped matrix
This would do An = 1:length(A); nr = 10; C(:,1) = floor((An-1)/nr) + 1; C(:,2) = An' - nr*(C(:,1)-1); where...

대략 12년 전 | 1

답변 있음
Reading out a Vector via a countermodel in simulink
David, are you specifying a value for |n|? For example (for testing purposes) use the following Simulink model <</matlabcentr...

대략 12년 전 | 0

| 수락됨

답변 있음
convert binary vector value into decimal
Raza, use bin2dec(num2str(a))

대략 12년 전 | 1

답변 있음
surface evolution of 2 arrays in 3D
Konstantinos, try this one: R = 0:0.1:1; z = cos(-R); % that'd be your current y-function th = 0:pi/20:2*pi;...

대략 12년 전 | 0

| 수락됨

답변 있음
Help with Simulink simple double integration problem, seems odd.
Efrain, it's all about <http://www.mathworks.com/help/simulink/ug/choosing-a-solver.html#f11-41982 accuracy> of the integration/...

대략 12년 전 | 0

답변 있음
How can I find the indices of a vector?
Use ind = find(A >= 0.123)

대략 12년 전 | 1

| 수락됨

답변 있음
Rotation of a set of points
Rasmus, this should work: X = [p1 p2 p3 p4]; theta = 120*(pi/180); R = [cos(theta) -sin(theta); sin(theta...

대략 12년 전 | 0

| 수락됨

답변 있음
Making a matrix dimension biggere
Try k = [k_fil k_omv] alternatively, you could use k = horzcat(k_fil, k_omv) assuming that you do want to concaten...

대략 12년 전 | 0

| 수락됨

답변 있음
swap columns of a matrix
Use k_minus_rev = k_minus(:, [length(k_minus(1,:)):-1:1])

대략 12년 전 | 1

답변 있음
Storing decimal numbers in for loop: getting a single vector
Parikshit, you cannot use non-integer indices (such as |0.1|) to access or write to a matrix. Also, indexing in MATLAB starts wi...

대략 12년 전 | 0

| 수락됨

답변 있음
Could I have the missing points
Pantelis, use <http://www.mathworks.com/help/matlab/ref/polyfit.html curve fitting>. As an example, x = 0:0.1:1; y = sin...

대략 12년 전 | 0

| 수락됨

답변 있음
Variable in function of 0
Maria, three things: * The relational operator for comparison is |==|. * Indexing in MATLAB starts at 1, rather than 0, li...

대략 12년 전 | 0

| 수락됨

답변 있음
had a trouble in the following program
The first two lines of your code (assigning values to |x| and |y|) you should execute in the MATLAB command window. Only the cod...

대략 12년 전 | 0

답변 있음
How to add trajectory into a phase plane?
Like this? function my_phase() IC = [1 1; 1 2;1 3;1 4]; hold on for ii = 1:length(IC(:,1)) [~,X] = ode4...

대략 12년 전 | 0

| 수락됨

더 보기