Answered

Static variables in MATLAB

Use keyword persistent to declare static variables persistent x; for more information: read here: <https://in.mathworks....

Static variables in MATLAB

Use keyword persistent to declare static variables persistent x; for more information: read here: <https://in.mathworks....

1 year ago | 5

| accepted

Question

Error using axesm. It says "checkellipsoid' for input arguments of type 'double'"

Hi! I am getting the following error while using axesm >> axesm Undefined function 'checkellipsoid' for input argumen...

2 years ago | 0 answers | 0

Solved

Find x in provided equation!

x^2-2*x+1=0 This polynomial can be expressed by using each term's coefficients, such as [1 -2 1]. Using the polynomial ...

4 years ago

Solved

Solve system of equation!

Given provided system of equation, and find x and y. System of equation can be expressed as each term's coefficient. For exam...

4 years ago

Solved

Calculate this one!

Using matlab calculate y y=(e^2)+100/20+sin(pi)*x Use x as a input.

4 years ago

Solved

Extrack values in 2-dimensional data

There are data c at (x,y) x=1:10;y=1:10; [x,y]=meshgrid(x,y) c=exp(sqrt(x.^2+y.^2)) Estinate data c at (x=5.4,y=7....

4 years ago

Solved

Calculate z=x^2+y^2

There are z in (x,y). x=1:10;y=1:10 [x y]=meshgrid(x,y) Calculate x^2+y^2.

4 years ago

Solved

Calculate polynomial equation

Calculate this equation using given x 1+x+x^2+x^3+....x^99 (hint: use polyval)

4 years ago

Solved

Change string to number

Change given string to number. (hint: there is already function) Changing from ['1234'] to [1234] is one of example

4 years ago

Solved

Resort number using given index!

Resort matrix [a] using given index [b]. For example, if a=[2 5 3 5]; b=[4 1 2 3]; , the result is [5 2 5 3]. (hint: y...

4 years ago

Solved

Sort matrix a according to ascending order of B!

To be specific, A=[9 3 1 3] B=[1 3 2 4] are provided, ascending sorting of B is [B(1) B(3) B(2) B(4)]. Thus ...

4 years ago

Solved

How to permute given 3d matrix?

A(:,:,1)=[1 3] A(:,:,2)=[2 2] A(:,:,3)=[4 3] Change rows to columns and columns to rows, similar to transpose. Resul...

4 years ago

Solved

Removing vibration!

There are [y] that vary with [x] but y including small useless vibration. x=1:10 y=[1.71 2.03 3.28 4.05 5.10 6.82 7.69 8.3...

4 years ago

Solved

Make 3d matrix from other matrix

A=[1 1;2 2]; B=[2 2;3 3]; C=[0 0;1 3]; Using given three matrix, make 3 dimensional matrix [D] by stacking.

4 years ago

Solved

Make equation that can express relationship!

Observed data [y] that vary with [x]. Unfortunately, [y] including small amount of errors. x=[1 2 3 4 5 6] y=[2.16 4.97 ...

4 years ago

Solved

Calculate gradient

x=1:0.1:5; y=@(x)x^2; calculate gradient (dy/dx) using numerical method. This means dydx(i)=(y(i+1)-y(i))/(x(i+1)-x...

4 years ago

Solved

Draw circles!

How to plot circle using matlab? using given variable [s], calculate x and y points of the circle that center is (0,0), radiu...

4 years ago

Solved

Make three random number on a sphere

Make three random number but these numbers, [x],[y], and [z], should accomplish x^2+y^2+z^2=1 (hint: spherical coordinate ...

4 years ago

Solved

Determine point is located in a circle or not

Using input [x] and [y], determine the points (x,y) is located inside of circle (x^2+y^2=1) if point is located in circle,...

4 years ago

Solved

Solve equation numerically

y'=y In order to solve equation using computer, numerical analysis are needed. 1st order Euler's method is one of the metho...

4 years ago

Solved

Calculate geostrophic current

eta0=0.01; R=300; f=0.01; g=9.81; x=-500:50:500; y=-500:50:500; [x y]=meshgrid(x,y); eta=eta0*exp(-(x.^2+...

4 years ago

Solved

Calculate some equation

Using given inputs x and z, make two outputs that are y1 = (xz)/(x/z)^2 + 14x^2 - 0.8z^2 y2 = x^z - z^x + (x/z)^2 - (z/x...

4 years ago

Solved

How to calculate log?

There is a log that have base 5. How to calculate? log5(x)?

4 years ago

Solved

Calculate inverse matrix in square matrix

A=eye(3) Calculate inverse matrix of given input. B=function(A) ans = 1 0 0 0 1 0 ...

4 years ago

Solved

Calculate area of sector

A=function(r,seta) r is radius of sector, seta is angle of sector, and A is its area. Area of sector A is defined as 0.5*(r^2...

4 years ago

Solved

Make roundn function

Make roundn function using round. x=0.55555 y=function(x,1) y=1 y=function(x,2) y=0.6 y=function(x,3) ...

4 years ago

Solved

Extract a part of matrix!

There is matrix A A=[1 2 3; 4 5 6; 7 8 9] Extract a part of matrix A from (2,2) to (3,3). Result should...

4 years ago

Solved

Delete useless part of data

When someone deals with big data. if the person delete useless part, calculation will be more faster than before deleting. De...

4 years ago

Solved

Calculate circle's property

[A R]=function(r) r is radius, A is area of circles, R is circumference. A=pi*r^2 R=2*pi*r

4 years ago