Answered

Plotting a 3D contour graph

Example with interp2 load matlab.mat Z = fv_avg_condensed; [m,n] = size(Z); [X,Y] = meshgrid(1:n,1:m); [Xq,Yq] = meshgr...

Plotting a 3D contour graph

Example with interp2 load matlab.mat Z = fv_avg_condensed; [m,n] = size(Z); [X,Y] = meshgrid(1:n,1:m); [Xq,Yq] = meshgr...

etwa ein Monat ago | 0

| accepted

Answered

Simulation of tensile test

An example clc,clear % umaxa=163; umaxa=113; umaxb=167; n = 20; area=0.064; rng('shuffle') Umax=umaxa + (umaxb-umaxa)....

Simulation of tensile test

An example clc,clear % umaxa=163; umaxa=113; umaxb=167; n = 20; area=0.064; rng('shuffle') Umax=umaxa + (umaxb-umaxa)....

etwa 2 Monate ago | 0

Answered

convert pattern image to sinusoidal wave

Convert image (rgb2gray) and sum rows

convert pattern image to sinusoidal wave

Convert image (rgb2gray) and sum rows

etwa 2 Monate ago | 0

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

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

etwa 2 Monate 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...

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

etwa 2 Monate 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

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

etwa 2 Monate ago | 1

| accepted

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

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

etwa 2 Monate 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

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

etwa 2 Monate 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 = ...

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

etwa 2 Monate 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)...

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

etwa 2 Monate 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...

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

etwa 2 Monate 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 ...

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

etwa 2 Monate 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...

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

etwa 2 Monate 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...

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

etwa 2 Monate 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...

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

etwa 2 Monate 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...

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

etwa 2 Monate ago | 0

Answered

How to solve this two variable equation and save values?

Try for K = 0:100 roots([1 2 K 2]) end

How to solve this two variable equation and save values?

Try for K = 0:100 roots([1 2 K 2]) end

etwa 2 Monate ago | 0

Answered

Contour or mesh plot of irregular-spaced data

Use griddata to convert your vectors into matrices

Contour or mesh plot of irregular-spaced data

Use griddata to convert your vectors into matrices

etwa 2 Monate 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

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

etwa 2 Monate 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...

Width of my plot

You can find intersection between data and perpendicular line You can rotate data and find intersection Use polyxpoly or int...

etwa 2 Monate 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(...

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

etwa 2 Monate 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...

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

etwa 2 Monate 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,'...

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,'...

etwa 2 Monate 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 ...

world or continental Maps on slice

Example A = imread('ngc6543a.jpg'); [m,n,~] = size(A); N = 100; % number of points for surface Z ...

etwa 2 Monate 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...

Colouring Tetramesh - Element wise

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

etwa 2 Monate 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.

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.

etwa 2 Monate ago | 0

Answered

Connecting dots with straight line in a loop.

Just use plot function plot(x(index),y(index))

Connecting dots with straight line in a loop.

Just use plot function plot(x(index),y(index))

etwa 2 Monate 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

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 2 Monate 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...

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 2 Monate ago | 3

| accepted