Assoc. Professor

Professional Interests: Numerical Analysis, Statistics

Question

History.xml strange behavior

When MATlab detect an error, after the error message MATLAB display [1,2,3]*[2,1]' Error using * Incorrect dimensions for...

11 months ago | 1 answer | 0

Answered

Unable to convert expression into double array.

It is not clear what do you want. Your expressions are entirely symbolic. If you want to give later values to x,y,z, phi, etc tr...

Unable to convert expression into double array.

It is not clear what do you want. Your expressions are entirely symbolic. If you want to give later values to x,y,z, phi, etc tr...

12 months ago | 0

| accepted

Answered

solving coupled differential system

Dear Saman, If set x=u(1), x'=u(2), y=u(3), y'=u(4) and M=[1,0,0,0; 0, m1,0,m2; 0,0,1,0; 0, m2,0,A], then the system becomes...

solving coupled differential system

Dear Saman, If set x=u(1), x'=u(2), y=u(3), y'=u(4) and M=[1,0,0,0; 0, m1,0,m2; 0,0,1,0; 0, m2,0,A], then the system becomes...

12 months ago | 0

Solved

Interpolator

You have a two vectors, a and b. They are monotonic and the same length. Given a value, va, where va is between a(1) and a(end...

1 year ago

Solved

Getting the indices from a vector

This is a basic MATLAB operation. It is for instructional purposes. --- You may already know how to <http://www.mathworks....

1 year ago

Solved

Determine whether a vector is monotonically increasing

Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...

1 year ago

Solved

Check if number exists in vector

Return 1 if number _a_ exists in vector _b_ otherwise return 0. a = 3; b = [1,2,4]; Returns 0. a = 3; b = [1,...

1 year ago

Solved

Swap the first and last columns

Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...

1 year ago

Solved

Swap the input arguments

Write a two-input, two-output function that swaps its two input arguments. For example: [q,r] = swap(5,10) returns q = ...

1 year ago

Solved

Column Removal

Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; ...

1 year ago

Solved

Reverse the vector

Reverse the vector elements. Example: Input x = [1,2,3,4,5,6,7,8,9] Output y = [9,8,7,6,5,4,3,2,1]

1 year ago

Solved

Select every other element of a vector

Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

1 year ago

Solved

Length of the hypotenuse

Given short sides of lengths a and b, calculate the length c of the hypotenuse of the right-angled triangle. <<http://upload....

1 year ago

Solved

Triangle Numbers

Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...

1 year ago

Solved

Generate a vector like 1,2,2,3,3,3,4,4,4,4

Generate a vector like 1,2,2,3,3,3,4,4,4,4 So if n = 3, then return [1 2 2 3 3 3] And if n = 5, then return [1 2 2...

1 year ago

Solved

Make the vector [1 2 3 4 5 6 7 8 9 10]

In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

1 year ago

Solved

Finding Perfect Squares

Given a vector of numbers, return true if one of the numbers is a square of one of the other numbers. Otherwise return false. E...

1 year ago

Solved

Maximum value in a matrix

Find the maximum value in the given matrix. For example, if A = [1 2 3; 4 7 8; 0 9 1]; then the answer is 9.

1 year ago

Solved

Find the sum of all the numbers of the input vector

Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

1 year ago

Question

functions of funtions symbolic

How could I define a functional (a function of functions), e.g in MATLAB Symbolic Math Toolbox. The function is an input par...

1 year ago | 1 answer | 0

Question

Conversion from MuPAD to MATLAB

Can anybody help me to convert the following MuPAD functions to MATLAB Symbolic Math? //Peano Th and kernel //pp - truncated...

1 year ago | 1 answer | 0

Question

Function of function in Symbolic Math Toolbox

How could I define a functional in Symbolic Math Toolbox , eg . I wish a generic definition that allows to choose several functi...

1 year ago | 0 answers | 0

Question

normalizing a symbolic expression?

Is there any corresponden in Symbolic Math Toolbox for Maple or Mupad function normal ? (normalizing a rational expression, wri...

1 year ago | 1 answer | 0

Question

Customize export from live editor to LaTeX

How can I customize the export from MATLAB Live Editor to LaTeX? Is there a solution different from modification of matlab.sty f...

1 year ago | 1 answer | 0

Question

fplot add an undesired line

When I use fplot with LineWidth a dashed thick gray line appears on the right edge o the box. Example h=fplot(@(u) u.*exp(u),[-...

1 year ago | 1 answer | 0

Question

Using previous analysis result in PDE Toolbox

I have a system of two elliptic PDEs which must be solved for several values of some parameters. I order assure convergence, I t...

2 years ago | 0 answers | 0

Answered

How can I solve an equation using fixed point method?

If you wish to solve x=2^(-x) use successive approximation method. Provide a function, a starting value and a tolerance. funct...

How can I solve an equation using fixed point method?

If you wish to solve x=2^(-x) use successive approximation method. Provide a function, a starting value and a tolerance. funct...

5 years ago | 0

Answered

How to create 3D grid from data without interpolation?

interp2() has options for cubic or spline

How to create 3D grid from data without interpolation?

interp2() has options for cubic or spline

5 years ago | 0