Question

finding frequency and domain of equation using ode45

dear all i use following code to find answer of the following equation : u ̈+u+u^3=0 function dydt= vdp1(t,u) dydt=[u(2);-u...

2 months ago | 1 answer | 0

Question

finding frequency and domain of equation using ode45

dear all i use following code to find answer of the following equation : u ̈+u+u^3=0 function dydt= vdp1(t,u) dydt=[u(2);...

4 months ago | 1 answer | 0

Question

Input function must return 'double' or 'single' values. Found 'sym'.

dear all when i using integral command although i define z i get the following error clc clear all E2=10; E1=20; lE=E2...

4 months ago | 1 answer | 0

Question

i confuse using syms variable

dear all i run the following code : clc clear all N=6; % number of disks L=0.08; % the length of each segment x = sym('...

1 year ago | 1 answer | 0

Question

Subscript indices must either be real positive integers or logicals.

dear all i have code like below clc clear all for b=1:0.1:20 M((b*10)-9,:)=[1 1 1 ] end but at b=2.4 i got this er...

1 year ago | 1 answer | 0

Question

predicting the trends of diagram

dear all i have 2 data point like this that come from nonlinear equations : x=[13 8 6 5.5 5 4.9 4.8 4.795 4.792 4.791 4...

2 years ago | 2 answers | 0

Question

call large equation to ode solver

dear all i want solve equation with using ode113 clc clear all tic initialcond=[-0.001,-0.001,-0.001,-0.001,-0....

2 years ago | 1 answer | 0

Question

problem with taking Differentiate from variable with counter !

dear all i need to write a code that have x symbolic variable that contain x=[x1 x2 x3 .... xn] and also x is depended to v...

2 years ago | 1 answer | 0

Question

problem with taking Differentiate from variable with counter !

dear all i need to write a code that have x symbolic variable that contain x=[x1 x2 x3 .... xn] and also x is depended to v...

2 years ago | 0 answers | 0

Question

how can i draw circle in 3D space with 3 point ?

Dear all I need to draw a circle in space with 3 points that I have. For example in the picture below I need to through t...

2 years ago | 1 answer | 0

Question

how can i fit smooth curve through these points ?

dear all i have data point like below and i want to fit smooth curve (interpolate) through these point x=0,0.0521848...

2 years ago | 1 answer | 0

Question

how can i substitute number with symbol ?

dear all i have code like below : clc clear all N=4; L=60e-3; M=3.338e-3; jx=5.743e-14; E=2.1e11; ...

2 years ago | 1 answer | 0

Question

why matlab Make a mistake in calculating sin and cos while teta in wiling to zero ?

dear all as it is obvious base on the Taylor series or l'hopital's rule , answer the below equation is 1/2 Taylor series ...

2 years ago | 2 answers | 0

Question

curve fitting : Error computing Delaunay triangulation. Please try again with different data.

dear all i have data point like below : s = 0 0.0200 0.0400 0.0600 0.0800 y = 0 ...

2 years ago | 1 answer | 0

Question

curve fitting : Error computing Delaunay triangulation. Please try again with different data.

dear all i have data point like below : s = 0 0.0200 0.0400 0.0600 0.0800 y = 0 0 ...

2 years ago | 0 answers | 0

Question

Subscripted assignment dimension mismatch when cal back the function

dear all this is my cod function [Rl] = basisfunction1(j,N) L=1; x = sym('x', [1 3]...

2 years ago | 1 answer | 0

Question

fsolve problem with syms var

dear all i write cod that i want to solve it with fsolve commend at the end, my equations just contain double parameters ...

2 years ago | 2 answers | 0

Question

Index exceeds matrix dimensions in very simple equation

x = sym('x', [1 3*N], 'real'); N=4; L=1; for i=2:N+1 pl(:,:,i)=L*[(cos(x(3*i-2))*(1-cos(x(3*i-1))))/x(3*i-1) (sin(...

2 years ago | 1 answer | 0

Question

FSOLVE requires all values returned by functions to be of data type double.

dear all i write code like below that produce 9*1 matrix that have 9 sym variable x1,x2,.........,x9 i m using fsolve to calc...

2 years ago | 2 answers | 0

Question

Subscripted assignment dimension mismatch when using coeffs command

dear all i have code like below: clc clear all syms q(i) teta(i) eb(i) tetad = sym('tetad', [1 2], 'real'); ...

2 years ago | 1 answer | 0

Question

rewrite A=[3*1] matrix to [3*3]*[3*1(var)]=A

dear all i have 3*1 matrix like matrix E below syms qd td ed q teta E =[ ed*cos(q)*sin(teta) - cos(teta)*(qd*cos...

2 years ago | 1 answer | 0

Question

how can i rewrite an equation base on variables

dear all i have 3*1 matrix like matrix E below syms qd td ed q teta E =[ ed*cos(q)*sin(teta) - cos(teta)*(qd*cos...

2 years ago | 1 answer | 0

Question

fsolve with 3 variable name

dear all i have 9 equations like below that equal to zero i put them in matrix called F=[F(1);F(2);F(3);F(4);......;F(9)] ...

2 years ago | 1 answer | 0

Question

i cant understand why matlab assumpt that my variables have image part

dear all i run the following code : syms be(i) ga(i) eb(i) for i=2:8 k(i)=sqrt(((be(i))^2)+((ga(i))^2)); q(i)=atan2(...

2 years ago | 1 answer | 0