Réponse apportée
solving differential equation for diffrent intial condition
Samee, check out this <https://www.mathworks.com/matlabcentral/answers/118837-how-to-add-trajectory-into-a-phase-plane#answer_12...

environ 10 ans il y a | 0

| A accepté

Réponse apportée
flight simulation using 3d animation
Ahmed, based on your screen shot it looks like you have not assigned unique names to the objects in your VR. As an example, one ...

environ 10 ans il y a | 0

| A accepté

Réponse apportée
Using ODE, several errors with a spring system and function
Julia, use function myODE() e = 0.0:.2:1.0; % no brackets, the colons are used to define the vector t = [1 20];...

environ 10 ans il y a | 0

Réponse apportée
ode45 with a function that change with time
Nashira, one approach is to use two different ode functions. Use the first one to integrate over the time interval |[0,tp]| and ...

environ 10 ans il y a | 0

Réponse apportée
ode45 is not outputting solutions for each increment specified by my “time-span” vector
zek3r, use [tsol,ysol] % returns vectors/matrices instead of [outputs] % returns structure as the output ar...

environ 10 ans il y a | 0

| A accepté

Réponse apportée
Solve the chain rule in lagrange equation
Siti, the Euler-Lagrange tool package on <http://www.mathworks.com/matlabcentral/fileexchange/49796-euler-lagrange-tool-package ...

plus de 10 ans il y a | 1

| A accepté

Réponse apportée
How to plot the trajectories of the equilibrium points
Raja, you are probably best off to solving differential equations of the system for different initial conditions (and the plot t...

plus de 10 ans il y a | 0

Réponse apportée
How do I fix the "index exceeds matrix dimensions error?
Cassidy, it is the placement of the state vector in the function call to |ode45| and the function [t,X] = ode45(@DE,t,...

plus de 10 ans il y a | 0

Réponse apportée
How can I solve symbolic Lagrange equations of motion numerically?
Hi Alexander, check out the <http://www.mathworks.com/matlabcentral/fileexchange/49796-euler-lagrange-tool-package Euler-Lagrang...

plus de 10 ans il y a | 3

Réponse apportée
Removing the string from cell array
Gopalakrishnan, use e.g. |strrep| a = {'fdf_faf' ; 'dfaf_dfa' ; 'dfadf_dfaf'; 'dfaf_fdaf';'daf_dfaf';'dfaf_fff'}; arep ...

environ 11 ans il y a | 1

| A accepté

Réponse apportée
Select specific coefficient from symbolic polynomial
Farid, you can back out the subexpressions and the corresponding coefficients of the polynomial using |coeffs| syms x y z P(...

environ 11 ans il y a | 0

| A accepté

Réponse apportée
How can I tell if the parallel computing toolbox installed?
J, use the |ver| command. You should see something like Parallel Computing Toolbox Version 6.6 (R2015a)

environ 11 ans il y a | 3

Réponse apportée
can be 2 different figures can be plotted and seen ?
Sure. E.g. figure plot(x,y) figure plot(n,p) Alternatively, use |subplot| subplot(2,1,1) plot(x,y) subplo...

environ 11 ans il y a | 0

| A accepté

Réponse apportée
plot for different values
Lincy, you mean probably something like x = 4:4:20; p = [0.3; 0.4; 0.8]; y = bsxfun(@rdivide, x, p); plot(x,y) Give...

environ 11 ans il y a | 0

Réponse apportée
why does the year function not work as specified in documentation?
Edmund, you probably do not have access to the <http://www.mathworks.com/help/finance/functionlist.html Financial Toolbox>. Chec...

environ 11 ans il y a | 0

| A accepté

Réponse apportée
vpasolve does not handle inequalities correctly
Jesse, according to the documentation " |vpasolve| ignores assumptions set on variables. You can restrict the returned result...

environ 11 ans il y a | 0

Réponse apportée
Nested if statement not perusing all if statements
Justin, almost there... for i = 1:100 if matrixA(i,2) < 0 matrixB(i,1) = i/a*i elseif matrixA(i,1...

environ 11 ans il y a | 0

| A accepté

Réponse apportée
keeping track of the original indices of an array after sorting
Md, simply use [B,I] = sort(A,'ascend') B = 1 2 3 4 5 I = 3 4 5 2 1

environ 11 ans il y a | 22

| A accepté

Réponse apportée
how to solve equations ?
Symbolically, syms x solve(sin(x) - 0.5 == 0,x) ans = pi/6 (5*pi)/6 Numerically, myfun = @(x) sin(...

environ 11 ans il y a | 1

| A accepté

Réponse apportée
Selecting non-zero elements from a symbolic vector
Farid, you could use syms a b c d = [a*b, 0 , a^2*b*c, 1, 0]; d(d==0) = [] d = [ a*b, a^2*b*c, 1]

environ 11 ans il y a | 0

Réponse apportée
Sym and Syms matlab 2014b MAC doesn't exist
Pedro, you probably do not have access to the Symbolic Math Toolbox. Check out this <http://www.mathworks.com/matlabcentral/answ...

environ 11 ans il y a | 0

Réponse apportée
Changing file name in Matlab
Tanmoyee, use the |strrep| command str = 'wflux_23.25_86.75'; str_new = strrep(str, 'wflux', 'data') str_new = dat...

environ 11 ans il y a | 0

Réponse apportée
Error with FOR loop and SQRT: In an assignment A(I) = B, the number of elements in B and I must be the same.
Michael, in for i=1:N c(i)=c*sqrt(1-(y(i)/(b/2))^2) end |c| is a vector of varying size (growing), which you a...

environ 11 ans il y a | 0

Réponse apportée
I want to loop by giving the C stops at a value less than 0.0001.
Angkhana, almost there. A = input('Enter A: '); B = input('Enter B: '); func = @(x) exp(x)-2*cos(x); err = 1e-4...

environ 11 ans il y a | 1

Réponse apportée
How can i solve this using MATLAB ?
Bello, if you have access to the Symbolic Math Toolbox: syms F1 F2 F3 sol = solve([2==0.04*F1+0.54*F2+0.26*F3,... ...

environ 11 ans il y a | 0

Réponse apportée
How to plot these function plesa help
Joe, you could use [x1,x2] = meshgrid(0:0.5:10,0:0.5:10); f = (4 - 2.1*x1.^2 + x1.^4/3).*x1.^2 + x1.*x2 + (-4 + 4*x2.^2).*...

environ 11 ans il y a | 0

| A accepté

Réponse apportée
correction for loop in bisection method
Anupan, check out A = input('Enter A: '); B = input('Enter B: '); func = @(x) exp(x)-2*cos(x); % use instead anonym...

environ 11 ans il y a | 0

Réponse apportée
How to write correct matlab codes in solving equation?
Anupan, use syms x solve(x+2 == 1,x)

environ 11 ans il y a | 0

| A accepté

Réponse apportée
How to merge two D arrays according a given order?
Aditya, how about ID1 = [id1' id1_coords]; ID2 = [id2' id2_coords]; ID = sortrows([ID1; ID2]) ID = 1 26 ...

environ 11 ans il y a | 1

| A accepté

Réponse apportée
Trying to plot radioactive decay equation
Daniel, you can simply do lambda = log10(2)/5700; x = 1:100; y = (-1/lambda)*log10(x/100); plot(x,y)

environ 11 ans il y a | 0

| A accepté

Charger plus