已回答
Plotting 2D Contour Plot with XYZ Data
Try griddata to create 2d matrices use contour

3 years 前 | 0

已回答
solving coupled ODE's by ode45
Here is how i see it dTc = R*Tc/Pc/Vc*(gamma*(mb*Tf-mt*Tc)-(mb-mt)*Tc); dPc = R*Tc/Vc*(rho*Sb*a*Pn - Pc*At/cstar) dVc...

3 years 前 | 0

已回答
Use second-order and fourth-order Runge-Kutta methods
I'd try simple euler scheme first. The scheme i used 𝜕𝑇/𝜕𝑡 + 𝑎*𝜕𝑇/𝜕𝑥 = 0 clc,clear a = 1; x = 0:0.01:1; t = 0:0.01:0....

3 years 前 | 0

已回答
2D to 3D extrusion
Here is an example (not tested) clc; clear; [x y] = ginput(5); z0 = 5; patch(x,y,'r') % face wall patch(x,y,x*0+z0...

3 years 前 | 1

| 已接受

已回答
How can i remove colormap or shading?
try cla before pcolor

3 years 前 | 0

| 已接受

已回答
How to plot a curve tangent to many ellipses.
Did you try boundary?

3 years 前 | 1

已回答
How to efficiently compute normal to a surface given surface points
try surfnorm

3 years 前 | 1

| 已接受

已回答
Find indices of distinct portions of a logical matrix.
use bwlabel to select each group separately

3 years 前 | 0

| 已接受

已回答
How Can speed up "for" loop ?
I don't see here any or . You can place them outside loops

3 years 前 | 0

已回答
Integration using quad help
try function handle f = @(x) exp(x)./((10.*x)-1); quad(f,0,200); pay attention how i wrote

3 years 前 | 0

已回答
How to find intersection between lines
use polyxpoly

3 years 前 | 0

已回答
The intersection of three cylinders
Another example create zigzag refine it using interp1 convert it to cylindrical coordinates add bottom part use dif...

3 years 前 | 1

已回答
The intersection of three cylinders
Here is another example start with usual meshgrid to create mesh modify Y coordinate calculate Z coordinate copy obje...

3 years 前 | 1

已回答
How can I interpolate matrix?
Use scatteredInterpolant

3 years 前 | 0

已回答
How to determine if a geographic point is inside a polygon?
Can you project the point on the polygon? Then you can use only (x,y) (inpolygon) to detect if the point is inside

3 years 前 | 0

已回答
How to save a cross-section of a volume made by surf-function as a 2D image?
What about imwrite? Im using export_fig

3 years 前 | 0

已回答
intersection area of 3 or more rectangles
Try polyxpoly with for loop

3 years 前 | 0

已回答
How to calculate the projection of point onto a line
Here are some exaplanations Let be some point on the line cross product: distance you want: Let me know if you need m...

3 years 前 | 0

已回答
Assigning labels and lines to points on a 3D scatter plot
Use plot3 or line

3 years 前 | 0

已回答
Mesh creation in nirfast
Looks like element size is coded here

3 years 前 | 0

已回答
Color Surface Plot for specific areas
Yes, its possible. Use cdata property [x,y,z] = peaks(20); c = rand(20,20); surf(x,y,z,'cdata',c)

3 years 前 | 0

已回答
Order List of Neighbors In Counter Clockwise Fashion
Yes, there is one! Look, just get angle of each point and sort it clc,clear r = 2+rand(20,1); t = rand(20,1)*2*pi; [x,y] =...

3 years 前 | 0

| 已接受

已回答
plot the 2D curve that is a solution to a nonlinear equation
You can try contour3 to calcualte graphical solution

3 years 前 | 0

已回答
continue and return in a loop
Here is the solution for i = 2:100 [Ricp Ticp ER weight] = icp(M, D, i); % Transform data-matrix using ICP result ...

3 years 前 | 0

| 已接受

已回答
center of gravity calculation from a dfiffraction limited spot
Try binarize or im2bw to convert image to 0-1 (binary). Experiment with grayscale parameter (see help) use regionprops

3 years 前 | 0

已回答
Trying to add color gradient to patch(isosurface))
Here is an example (not tested) % BW - is your 01 3d matrix % A - is your color value matrix (0-33) cm = jet(33); %...

3 years 前 | 0

| 已接受

已回答
How to find the point of intersection of two level curves?
You need double for loop k = 0; for ic = 1:length(C1) for jc = 1:length(C2) k = k + 1; [xint1{k}, yint1...

3 years 前 | 0

| 已接受

已回答
Add vectors in loop
Maybe for loop ind = 0; for i = 1:2:length(ipts_shift) ind1 = ipts_shift(1) <= t_er & t_er < ipts_shift(2); ind = in...

3 years 前 | 0

已回答
I want to remove a shadow in a circle
Try imopen or imclose

3 years 前 | 0

加载更多