Answered
Colormap for plot function
maxs = max(stress(:,2)); mins = min(stress(:,2)); color = jet(255); % get 255 RGB colors ncol = (cur_stress-mins)/...

7 years ago | 0

Answered
ODE with Matrices Galerkin
function mathworks xspan = [0 0.8]; y0 = ... % initial conditions (vector of 32) [x, y] = ode45(@func_trap, xspa...

7 years ago | 0

Answered
Find jumps in Signal take constant area and split signal to different mat files
I tried to smooth data. Then get every 600th point to compare with noise value and filter. Then comparing points to find sta...

7 years ago | 0

Answered
How to draw a L*a*b* colour space or HSV colour space (2D)?
clc, clear, cla m = 100; n = 10; r = linspace(0,1,n); theta = linspace(0, 2*pi, m); [rg, thg] = meshgrid(r,theta); [x,y] =...

7 years ago | 0

Answered
Remove White Pixels from Image for Processing
Doesnt work fast, but you can separate any color you want: clc, clear A = imread('images\masson.jpg'); subplot(1,2,1) imsh...

7 years ago | 0

Answered
How can I get the equation of 3D interpolation?
Try interp2 or fit

7 years ago | 0

Answered
How do I fit multiple curves with same fitting parameters?
Dont understand why function fit cant find coeffiecient from script file. But cftool works fine clc, clear E0 = 540; tau0 =...

7 years ago | 0

Answered
Combine images to create a composite without imfuse
Background == 'none' in matrix is [0 0 0] [m, n, ~] = size(A); C = A; for i = 1:m for j = 1:n if sum(B(i,j,:)) ...

7 years ago | 1

| accepted

Answered
Why do we set r=r+1 when (x(t)-rangeX(r))*(x(t)-rangeX(r+1))>0 in the uniform variables code
while (x(t)-rangeX(r))*(x(t)-rangeX(r+1))>0 is the cheking if x(t) is not in its the same as: while ~( rangeX(r) < x(t...

7 years ago | 0

| accepted

Answered
Plot - show fitting error
A = 1.9; x = linspace(0,4,50); y = A.^x + rand(1,50); res = fit(x',y','A.^x'); y1 = res.A.^x; plot(x,y,'.',x,y1) legend(...

7 years ago | 0

Answered
How can I match the features 5000 images at a time by using MATLAB?
Can you explain more precisely? Any example?

7 years ago | 0

Answered
Save as separate file with separate name in txt
s = num2str(c(i)); save(['/Users/desktop/' s '.txt'], 'f1');

7 years ago | 0

Answered
How to find the coordinates of the point of intersection of a line and a curve?
x = linspace(0,2.7*pi,2); y = 0.1*(x)+0.4; x0 = linspace(2.7*pi, 4*pi,5); x = [x x0]; y = [y sin(x0)+2.5]; x_ = linspace(...

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

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

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

7 years ago

Solved


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

7 years ago