已回答
How to put a spline through points representing a path
What about rotation? R = @(a)[cosd(a) -sind(a);sind(a) cosd(a)]; % rotation maitrx v1 = R(45)*[x(:) y(:)]'; ...

3 years 前 | 1

已回答
Dividing the point cloud in 10x10 ways
see this example clc,clear x = rand(10,10,10); y = rand(10,10,10); z = rand(10,10,10); ix = round(5*x); iy = round(5*y...

3 years 前 | 0

已回答
How to calculate the area between two functions?
Simply use trapz

3 years 前 | 0

已回答
How to convert CAD file to points on 3D grid? [URGENT]
What about this? You can find volume under each triangle using this formula

3 years 前 | 0

已回答
Distance between a point(x,y,z) and a surface(X,Y,Z)
THe best idea i have: refine close region using interp2 and just find closest distance (blue)

3 years 前 | 0

| 已接受

已回答
pcshow - rescale axes on 3D pointcloud display
try axis equal

3 years 前 | 0

已回答
Need help finding the z-coordinate of a 3D surface given a known x and y coordinate
What about interp2? If (x,y) are known z coord can be found z1 = interp2(x0,y0,z0,x1,y1);

3 years 前 | 0

已回答
How to create a grid of squares and attribute a color to the squares like in a contour plot?
Here is the idea clc,clear t = linspace(0,360,5)+45; % create angles t = [t-2 t+2]; % add shifted an...

3 years 前 | 0

已回答
ODE Solver in matlab
Here is a start. But don't know how to write 3d and 4th initial guess f = @(t,x) [x(2); -C2/C1]; fb = @(p0,pt) [(1-gamma)*pt(1...

3 years 前 | 0

已回答
How to remove open edge segments?
You can use bwlabel to separately inspect each region. Use imclose to filter Example (not tested) I = imread('image.png'); B ...

3 years 前 | 0

已回答
How to convert CAD file to points on 3D grid? [URGENT]
Try alphaShape with inShape option

3 years 前 | 1

| 已接受

已回答
How to move an image inside a computational grid?
Try this clc,clear [x,y] = meshgrid(0:10); % main grid [x1,y1] = meshgrid([4 6]); % small rectangle surf(x,y,...

3 years 前 | 1

| 已接受

已回答
how can I show all of my data in the legend for each curve?
Try this [x,y] = meshgrid(0:0.1:5,0:5); y = sin(x)./y; plot(x',y') s0 = sprintf('curve #%d,',0:5); s1 = strsplit(s0,','); ...

3 years 前 | 0

已回答
Question about how this cubic spline is solved and why?
Here is a usefull example clc,clear n = 6; % num of points x = 1:n; % x range y = rand(1,n...

3 years 前 | 1

已回答
How to add changing member colors indicating the changing forces within the various members to this animation
What about this? clc,clear n = 20; r = linspace(1.5,5,20); % radius for curves animation x = linspace(-1,1,n); ...

3 years 前 | 0

已回答
How to calculate total mass of points in each 1cm thick slice of a rectangular cuboid?
Here is a simple example using rounding clc,clear x = rand(100,1); y = rand(100,1); % let's divide Y coord into 5 regions ...

3 years 前 | 0

已回答
Solving 4 linear equations with 4 unknowns (but vector variables)
Use for loop c = [ 1 2 3 ]; res = c*0; syms x for i = 1:length(c) f = c(i)*x + c(i)/10; res(i) = double(solve(f));...

3 years 前 | 0

已回答
How to create solid objects from curves in 3D space?
Try to modify torus equation

3 years 前 | 0

已回答
How to draw a vector/line in a mesh
Thanks for the drawing, i understand Here is a way: [x,y] = meshgrid([0 1]); % coordinates for square t0 = 45; [u0,v0...

3 years 前 | 1

| 已接受

已回答
Use vpasolve on a table
Try to change your code like this T = readtable('Savings.xls.xlsx'); syms s2 for i = 1:size(T,1) % number of rows T....

3 years 前 | 0

| 已接受

已回答
field radiation pattern generation
Use trapz t = -90:90; % i choosed step 1 x = -1:0.1:1); [T,X] = meshgrid(t,x); u = sin(T); A = ...% fun = A.*exp(....

3 years 前 | 0

| 已接受

已回答
Why cumtrapz does not give same results as my analytic solution?
I think it happens because of limits of integration x = linspace(-2,3); y = x.^2; c0 = x(1)^3/3; plot(x,cumtrapz(x,y),'.-r')...

3 years 前 | 0

| 已接受

已回答
How to find a path with minimum distance and minimum curvature inside tracks limits?
Here is a usefull link about curve interpolation: LINK Curvature (wikipedia link) DO you have any questions?

3 years 前 | 0

已回答
Point Mass model, Acceleration, Velocity and position using Euler approximation
Here is the answer x(1)=0 %m while min(x)< 75; min(x) is always 0

3 years 前 | 0

已回答
finding covered regions created by intersecting random lines
Here is the method using bwlabel clear clc I = zeros(100); % random coordinates of lines x = rand(20,2)*98+1; ...

3 years 前 | 1

已回答
How can I connect the maximum points of several
THe short version clear clc t=263:1:383; rr = 1:5; for r = [ rr/1000 rr/100 rr/10 rr ] [T, R]=meshgrid(t,r); k...

3 years 前 | 1

| 已接受

已回答
Animate creation of a circle clockwise and anticlokwise for different staringpoints
Here is another approach: iterate from starting point until reaching the end clc,clear r0 = 2; a = r0*[cosd(45) sind(45)];...

3 years 前 | 0

| 已接受

已回答
How to make plot of cylindricity
use griddata to create a matrix use surf to visualize

3 years 前 | 0

已回答
Obtain intensity of each pixel in a contour plot?
You can extract each contour separately [c,h] = contour(x,y,z); h1 = get(h,'children'); for i = 1:length(h1) x = get(h1(...

3 years 前 | 0

加载更多