Question

Implementing a boundary value problem with code from file exchange

By the help of Ernesto Momox B. University of Essex, UK in Matlab file exchage, I got code for finite difference method that sol...

2 months ago | 0 answers | 0

Question

Versions of Euler Methods

Please, pardon me for my ignorance I am new to MATLAB. I want to compare three versions of Euler methods with the step sizes of ...

2 months ago | 2 answers | 0

Question

Plotting graphs with setting my own scales

I plotted these nonlinear functions fplot (@ (x)x^2 -2) hold on fplot (@(x) sqrt(x+2)) hold on fplot (@(x) (x^2 + 2)/(2*...

3 months ago | 1 answer | 0

Question

Finding all roots of nonlinear function

How would I find all the roots of the function I know all sine functions have multiple roots and so this function may also hav...

3 months ago | 1 answer | 0

Question

Linear programming code not showing the solution

I extracted the following code from an online pdf that solves basic feasible solution of linear programming problems. function...

4 months ago | 2 answers | 0

Question

Logical with complex numbers in a vector

I have a complex number in a vector, e = -0.0000 3.0000 9.0000 >> logical(e) %checking if the the first entry...

4 months ago | 3 answers | 0

Question

Combining Functions of Gaussian elimination and Banded Matrix

Goal: to create a banded version of Gaussian elimination without pivoting. %%Work so far: I have a code that generates a bande...

4 months ago | 0 answers | 0

Question

MATLAB Smallest Integer in floating point number system

I am interested in finding the smallest integer in MATLAB, say y, that is not representable in 64 bit floating point format so t...

5 months ago | 2 answers | 0

Question

Creating a fourth column of my code

I have the following codes: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - format longg f= @(x) sin(x); x0...

5 months ago | 0 answers | 0

Question

Converting a whole number to base 2 (Binary Operation)

I know there are built in functions for converting a decimal and whole numbers to binary numbers. But I need help in writting a...

5 months ago | 1 answer | 0

Question

Consecutive subtraction of the entries of a vector

I am a novist in MATLAB. I have no idea of how to subtract the entries of a vector consecutively. Say if A=[3,5,9,11,15]' and I ...

5 months ago | 1 answer | 0