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...

10 days 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...

25 days 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

1 month 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...

6 months 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 ...

7 months 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...

8 months ago | 1 answer | 0

Question

can anyone help me?

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

12 months 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

12 months 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 ?

1 year 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

1 year 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

1 year 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

1 year 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); ...

1 year 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...

2 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...

2 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...

2 years ago | 2 answers | 0

Question

is there a conversion command ?

if we want to convert a fractional number to decimal, is there any command doing this? for example x=1/33 to convert it to 0.0...

2 years ago | 1 answer | 0

Question

can i obtain this vector ?

can anyone help me to obtain this vector: v=[1 2 5 6 9 10]; i want to know, if we can obtain a relation beteween the vector's ...

2 years ago | 2 answers | 0

Question

how can i extract this matrix ?

i have a square matrix M of size 12x12 containing the integers from 1 to 144 rows, i want to extract the submatrix containing t...

2 years ago | 2 answers | 0