Community Profile

### CypherCrescent ltd, Nigeria

Last seen: 1 day ago Active since 2015

Applied Mathematician, Mechanical and Petroleum Engineer. Professional Interests: Reservoir Engineering, Fluid Mechanics, Solid Mechanics, Numerical Optimization

All

#### Content Feed

View by

Taylor series for e^x with loop
%% This is more efficient x = 2; v = 1; n = 1; d = 1; for i = 1:20 n = n*x; d = d*i; v = v + n/d; end fp...

9 months ago | 0

Scatter with colour-coded markers (matrix)
minv = min(min(velo)); maxv = max(max(velo)); c = (velo - minv)./(maxv - minv); scatter(x(:),y(:),10,c(:))

10 months ago | 1

Solving nonlinear function using fzero, Error Function values at the interval endpoints must differ in sign.
Imp=100; t0=1e-6; P=204000000; Tf=2e-3; x = nan; options = optimset('Display','off'); % show iterations x0 = 2; while(i...

10 months ago | 0

Help plotting a circular orbit
G = 6.6743*10^-11; %Gravitational Constant, Units: m^3 kg^-1 s^-2 Mc = 5.972*10^24; %Mass of cent...

10 months ago | 0

| accepted

How i implement Adams Predictor-Corrector Method from general code ?
clc; clear all; h = 0.01; mu = 20; f_m = @(t,y) mu*(y-cos(t))-sin(t); exact = @(t) exp(mu*t)+cos(t); [t,y_m] = dd2(f_m,[0, ...

10 months ago | 0

| accepted

Not enough input arguments.
%% Backward Difference Formula Method %% clc; clear all; h=0.01; t=0:h:1; n=numel(t); mu = 20; f_m = @(t,y) mu*(y-cos(t)...

10 months ago | 0

Array indices must be positive integers or logical values.
here is another modification to make the code look exactly like the description %% Adam-Bashforth %% clc; clear all; h = 0....

10 months ago | 0

| accepted

Numerical Laplace inversion with fmincon
I am sorry, I didnt see the problem early. This is the complete code clear all; close all; clc; Data = ... [1 0.003322259 ...

11 months ago | 0

| accepted

How to set outside a country values to NaN, in a 3d array (lat x lon x time) ?
The best solution is to use google map to get latitudes and logitudes of vertices of a polygon representing the external boundar...

3 years ago | 1

Question

how to create classes in matlab
How to create classes of special data type, overload operators for them and use them in further calculations

5 years ago | 1 answer | 0

### 1

Is there any concept like dictionary or hash tables in matlab like in Python?
Yes. c = containers.Map c('foo') = 1 c(' not a var name ') = 2 keys(c) values(c)

6 years ago | 18

How to solve a second order linear differential equation with a heaviside function
Since its a second order differential equation, there is no need for y''(0) and since you want to solve numerically, you can ...

6 years ago | 0

why my iteration prog doesn't work ?
increase your number of iteration, you will meet the tolerance target

6 years ago | 0

How to find input data that best matches given output data
I guess this is what you wanted fs/2 = 5e11 length(x) = 958576 freq = transpose([10.7 11.213 11.725 12...

6 years ago | 0