Question

can anyone help to solve my problem ?

Here my code matlab, i'm trying to have a figure who looks like the below figure(two legends for the same graph and zoom in the ...

3 months ago | 1 answer | 0

Question

any suggests, solutions ?

i have a set of parameters, and i want fo create a file function that containt all my parameters in order to use them in othe...

5 months ago | 2 answers | 0

Question

can anyone help me to find the error ?

syms x1 esp=10^-10; x0=0.5; nmax=100; df=@(x1)(diff(f(x1))) [ xapp,it] = newton(x0,esp,f,df,nmax) where: function [ xapp...

5 months ago | 1 answer | 0

Question

can anyone tell whre is the error ?

x=-2*pi:0.01:2*pi %x2=-pi/2:3*pi/25:pi y=exp(x) z=sqrt(exp(-x)) figure(3) plot(x,y,'b','LineWidth',2,x,z,'r...

7 months ago | 1 answer | 0

Question

Forming a block diagonal matrix of one certain matrix?

I have a matrix A which is m*n. I want to create a block tridiagonal matrices of size n*m whose diagonals elements are the matri...

7 months ago | 1 answer | 0

Question

find max of vector

i want to find the maximum of a vector and its position, if i have for example v=[-1,3,4,5,-2,5] , the max is 5 but i have two p...

8 months ago | 2 answers | 0

Question

can anyone help explain to me ?

I want to calculate the sum value of sn, with different manner, using matlab , its exact value is equal , the first way is: t...

9 months ago | 1 answer | 0

Question

How do you find the intersection points of two functions?

i have A=10+0.5*n; P=8*exp(1.02*n) where n=1:110 i want to find the point when P>A ,numerically and graphically

9 months ago | 1 answer | 0

Question

can anyone help me ?

here is a code matlab of one degree differential equation, i want to plot the error method for different values of N, can anyone...

1 year ago | 1 answer | 0

Question

can anyone help me ?

i want to plot these figures for different values of lambda_3,but matlab plot me just for one value can anyone tell me where is ...

1 year ago | 1 answer | 0

Question

how to plot this ?

i have a circle and i want to plot his half radius in the same figure can anyone help me : angle=linspace(0,2*pi,360); x=cos(a...

1 year ago | 1 answer | 0

Question

can anyone help me?

ca anyone provide me with books that contains exercices for beginners for Matlab please ?

1 year ago | 2 answers | 0

Question

how to create this matrix?

can anyone help me to construct this matrix blj=(-2)^j-l if l<j blj=1 if l=j blj=0 if l>j

1 year ago | 3 answers | 0

Question

finding the max ?

i have a vector x=[-1,5,3,4,5] i want to calculate the max of the vector x and its position using the loop for, i want also t...

1 year ago | 1 answer | 0

Question

how can we do this?

i want to calculate the maximum of vectors éléments and its position using the diff command, can any one help me ?

1 year ago | 1 answer | 0

Question

how to calculate Somme of vector elements ?

i would like to calculate the somme k=1:10^5 of 1/k^2,using the command sum, can anyone help me ?

2 years ago | 1 answer | 0

Question

what is the meaning of this result ?

can anyone explain to me the meaning of this : when i write real z matlab gives to me this : ans =122 real a ans =97

2 years ago | 1 answer | 0

Question

is there a matlab command that gives me the RGB matlab code of each pixel of a given image ?

such a given image ones(4,4) for example

2 years ago | 1 answer | 0

Question

can anyone suggest me a command that talks about how matlab performed an arithmetic operation (its steps to give us the final result) ?

such a given operation (1/2+1/3)/456*789

2 years ago | 3 answers | 0

Question

can anyone help me please ?

can anyone solve me this problem, ican't detect the error ? D=0; d=0.3; if th==7.5 (D=d/0.6); %&& (K==0.15); ...

2 years ago | 1 answer | 0

Question

I want to calculate a zero of a function, can anyone help me ?

as an example if we take x^3-8*x^2+17*x-10,i want to calculate this zero polynomial using dichotomy method but it does'nt give ...

2 years ago | 2 answers | 0

Question

Can anyone help to creat this vector ?

A vector is given by: V = [5; 17; 3; 8; 0; 1; 12; 15; 20; 6; 6; 4; 7; 16]. Write a program in the form of a script file, which d...

2 years ago | 1 answer | 0

Question

can anyone help me to construct this matrix ?

i have a such vector W,and i want to construct a matrix, in the attached file i have the form that i want to got, can anyone hel...

2 years ago | 1 answer | 0

Question

What is the difference between these commands ?

can anyone tell me the difference between plot3 and meshgrid and surf ?

2 years ago | 1 answer | 0

Question

what is the difference between hold and plot of two curves in the same figure ?

i want to plot cos(x) and sin(x) in the same figure, i have two ways : i can write for example : X=0:pi, Y=cos(X); Z=sin(X...

2 years ago | 1 answer | 0

Question

how to use the loop for?

i would like to use the loop for that looks for the maximum of a vector and its position without using the 'max.can anyone help ...

2 years ago | 1 answer | 0

Question

how can i obtain this ?

i would like to use the command reshape to convert a vector v=11:99 to a matrix (9x9), how can i do this, can anyone help me ?

2 years ago | 2 answers | 0

Question

what is the result?

Pull 20 numbers randomly in the interval [0; 1]. What is the minimum value of the vector and the position of the Coefficient whi...

3 years ago | 1 answer | 0

Question

what is the result?

X a matrix 2 × n containing the coordinates of n points of the plan. How to obtain a matrix where the points are ordered by asc...

3 years ago | 1 answer | 0

Question

can anyone explain this result ?

i have a polynomial p = [ 3 -5 2 ] i have calculated his roots r = roots(p) r= 1.0000 0.6667 then i wanted to ob...

3 years ago | 2 answers | 0