Answered
The differential equation problem with variable solution by using ode45
Here is an idea [t1,x1] = ode45(@F1,ts,x0); % solve second order [t2,s] = ode45(@(t,s)F2(t,s,t1,x1(:,1)...

18 Tage ago | 1

| accepted

Answered
How to visualize a tubular volume/surface passing through a given scalar data (points in 3D) forming a sequence of cross-sections
Here is one way: Interpolate each crossection with equal number of points (look HERE) Concantenate them and just use surf to...

18 Tage ago | 0

| accepted

Answered
Brake rotor simulation - Couldn't get results
I set up maxstep opt = odeset('MaxStep',0.1); [t,x] = ode45(@DerFun,Tspan,x0,opt); And now it looks like

18 Tage ago | 1

Answered
How to create fade gif image OUT OF 6 IMAGES AS GIVEN IN PICTURE?
Read about gif animation in help Here is an idea: n = 5 % number of changes between images for...

19 Tage ago | 1

| accepted

Answered
How to find the circle/ contour of my shape and the distance from the outer contour to the center of the shape?
Binarize image (0 and 1) imdilate image Use edge Maybe bwareopen to clear a bit

19 Tage ago | 0

| accepted

Answered
Solution to nonlinear differential equation
Here is an attempt function bvp4c_mathworks solinit = bvpinit([-1 1],[0 0]); %[-inf, inf] replaces with [-1, 1] sol = ...

19 Tage ago | 0

| accepted

Answered
3D plotting of Excel Data
Use plot and pause to animate the movement plot3(x,y,z) hold on for i = 2:length(x)-1 ii = i-1:i+1; h = plot3(x(ii)...

19 Tage ago | 0

| accepted

Answered
How to plot the elements of a matrix with a specific coordinates and specified the region in matlab?
Maybe inpolygon n = 100; t = -linspace(0,2*pi,n)+pi/2; x = cos(t); y = sin(t); x0 = 0.5; % po...

20 Tage ago | 1

| accepted

Answered
Extract an elevation profile along at specific azimuth using improfiler
Here is simple scheme that should help You can find size of an image [m,n,k] = size(I); x1 = n/2; % half of ...

20 Tage ago | 0

| accepted

Answered
Plotting solution of equation
Experiment! d = 1e-3; % plate thickness [m] h = d/2; ct = 2.26 * 1e-3 / 1e-6; % transverse wave speed for aluminium[m/s] ome...

20 Tage ago | 0

Answered
Draw a matrix image of blood vessel
Would it be helpfull? n = 10; dt = .1; [x, y, z] = deal( zeros(2,10) ); axis([-1 1 -1 1]*10) hold on k = 0; t = 360*(rand...

20 Tage ago | 0

| accepted

Answered
Plot a heatmap from a matix
You are using H for rows and W for columns M1 = zeros(H,W); % ... for i = 1 : W for j = 1 : H % ... M1...

23 Tage ago | 0

| accepted

Answered
Trying to graph a 3 variable probability function
Use isosurface to visualize [a,b,c] = meshgrid(0:0.1:2); f = 1./(3.5*a+2.5*b+3*c+1); cla hold on for fk = 0 :0.1:1 iso...

23 Tage ago | 0

Answered
How to solve this two variable equation and save values?
Try for K = 0:100 roots([1 2 K 2]) end

23 Tage ago | 0

Answered
Contour or mesh plot of irregular-spaced data
Use griddata to convert your vectors into matrices

24 Tage ago | 0

Answered
Is this a Matlab bug? The use of Ctrl + A to select all
You can add bookmark to return to your line. Crtl+F2 and just F2 Please accept my answer give me a vote

25 Tage ago | 1

Answered
Width of my plot
You can find intersection between data and perpendicular line You can rotate data and find intersection Use polyxpoly or int...

25 Tage ago | 0

| accepted

Answered
ODE coupled with classic equation
Try this E = @(t) E0*exp(-t^2/tau^2)*cos(w0*t); w = @(t) a/E(t)*exp(-b/E(t)); rho = @(t,rho) w(t)*(rho-rho0); [t,r] = ode45(...

26 Tage ago | 0

| accepted

Answered
Converting pixel coordinates to latitude and longitude in decimal degrees for a binary image.
You forgot about concantenating (cat) function A= geotiffread('ems_a&n_subset.tif'); A(A>=0.99500)=0; y = im2bw(A); r = re...

26 Tage ago | 0

Answered
Remove single pixel width connecting lines between objects
Here is an idea: find large areas and merge them to remove walls I = imread('image.png'); I1 = im2bw(I); % I2 = bwmorph(~I1,'...

27 Tage ago | 0

Answered
world or continental Maps on slice
Example A = imread('ngc6543a.jpg'); [m,n,~] = size(A); N = 100; % number of points for surface Z ...

27 Tage ago | 0

Answered
Colouring Tetramesh - Element wise
Manipulate with faceVertexCData property if you want to assing some colors get(p) %% FaceVertexCData = [ (72 by 1) do...

28 Tage ago | 0

Answered
How to draw ellipse and identify its center around numerous points with Lat and Lon ?
You can identify bigger axis of ellipse (and it's angle) using pdist2 or just find two furthermost points.

28 Tage ago | 0

Answered
Connecting dots with straight line in a loop.
Just use plot function plot(x(index),y(index))

28 Tage ago | 0

Answered
Using a loop and counter for parametric equations
Preallocate array before loop E = zeros(3-1+1,22-5+1,6-5+1); for %% E(H,T,h) = ... end

etwa ein Monat ago | 0

Answered
ode45 2nd order IVP **please help!!**
You are almost there! Yyou written function for ode45 but you didn't use it! function yprime = ex3_2ndorder(x,y) %name and dat...

etwa ein Monat ago | 3

| accepted

Answered
How do I create some code that will check angles and select the next point to draw a line to based on smallest angle?
Here is some start What about these? See attached script

etwa ein Monat ago | 0

Answered
Colormap color levels on cursor
Here is direction You have position of cursor in variable pos You can access to FaceVertexCData with command get(h,'FaceVerte...

etwa ein Monat ago | 0

| accepted

Answered
How to assign specific colors to every quiver?
You can manually assign color to each vector clc,clear [x,y] = meshgrid(0:0.2:2,0:0.2:2); u = cos(x).*y; v = sin(x).*y; ...

etwa ein Monat ago | 0

Answered
anyway to give separate color to 'stack' bar plot
Do you have colors you want to paint bars into? for i = 1:length(hBar) h1 = get(hBar(i),'Children'); n = length( get(...

etwa ein Monat ago | 0

Load more