已回答
plot smooth curve through discreet points
xx = linspace(min(x),max(x),100); yy = spline(x,y,xx); figure,plot(x,y,'o',xx,yy)

10 years 前 | 2

已回答
Solving an integral with variable as upper limit and plotting the solution
You can use cumsum or cumtrapz.

10 years 前 | 0

已回答
what does this mean?
hblms is a struct array ( http://uk.mathworks.com/help/matlab/ref/struct.html ) Set its variable WeightsOutputPort to false

10 years 前 | 1

| 已接受

已回答
Determing intermediate points in 3D mesh plot
If the points are on regular grid, you can use interp2: interp2(x,y,z,x0,y0,'cubic') Otherwise, you can scatteredInt...

10 years 前 | 0

| 已接受

已回答
Why is my surface not fitting the data points smoothly?
You can try to plot your surface with trisurf: [x,y]=meshgrid(1:15,1:15); tri = delaunay(x,y); z = peaks(15)...

10 years 前 | 0

已回答
Stitching sub images to reconstruct full image
What about using mat2cell and cell2mat? It should be much easier.

10 years 前 | 0

已回答
surf plot- Z must be a matrix, not a scalar or vector.
The surf function requires the z values to be a matrix. If you have column data you can use trisurf, instead: tri = delaun...

10 years 前 | 2

提问


Delaunay special constraints not being part of the triangulation
Hello, I'm trying to create a constrained delaunay triangulation of a set of points: in particular, I don't wont triangles to i...

10 years 前 | 1 个回答 | 1

1

个回答

提问


Select unique couples from two vectors (?)
Hello! I have a code I would like to perform withouth for loop, but I don't know how to describe it, so I'll show you with an...

11 years 前 | 1 个回答 | 0

1

个回答

提问


Plot MarkerSize units normalized
Hello! I need to plot a lot of circle of a precise size every small time-step. I was using a for with plot rcos-rsin, but it wa...

11 years 前 | 2 个回答 | 1

2

个回答

提问


Mean of matrix by columns
Hello! I'm looking for a function to get the mean of two (or more) columns: A = 1 2 3 4 5 6 7 ...

11 years 前 | 3 个回答 | 0

3

个回答

已回答
Fill a matrix with same values
Thank you :D

12 years 前 | 0

提问


Fill a matrix with same values
Hi! I have a matrix like this: [ 1 8 9 7 7 4] [ 0 0 0 0 0 0] [ 0 0 0 0 0 0] [ 9 8 6 5 5 1] [ 0 0 0 0 0 0]...

12 years 前 | 4 个回答 | 0

4

个回答

已回答
Display imagesc within a shape
The problem is that my matrix is rectangular shape, but it refers to a trapezoidal shape, so I should *reshape* the content of t...

12 years 前 | 0

| 已接受

提问


Display imagesc within a shape
Hi! I have a matrix of values that refer to the stress on a trapezoidal shape. Now, I would like to show the intensity of the ...

12 years 前 | 2 个回答 | 0

2

个回答

已回答
¿How to order 'x' numbers in ascending or descending?
If you don't want to use sort (may be for practicing?), here is a simple alternative: a = round(rand(1, 10)*20) tmp = a;...

12 years 前 | 0

| 已接受

提问


Determination of a curve with a given curvature
Hello! I have a set of points and I have to calculate the curvature. To find the curvature I made this simple code, which solv...

12 years 前 | 0 个回答 | 0

0

个回答

提问


Parametric spline interpolation for airfoil
Hi! I have a set of points from an airfoil: x = [0 ... 1] yUp = [ ... ] Leading edge -> trailing edge yLow = [ ... ]...

12 years 前 | 0 个回答 | 0

0

个回答

提问


Concatenate vector in a 3d matrix
Hi. I have these vectors: a = [11 12 13 14]; b = [21 22 23 24]; c = [31 32 33 34]; d = [41 42 43 44]; I want to concaten...

12 years 前 | 1 个回答 | 0

1

个回答

提问


Add a row to a matrix where find==1
Hello! I've a matrix A and a vector f: A = 9 6 5 9 10 9 8 7 1 2 9 ...

13 years 前 | 1 个回答 | 0

1

个回答

提问


Find a vector in a structure
Hello! I've this structure: >> vortex(:).points ans = 1 2 3 4 5 6 7 8 9 ...

13 years 前 | 2 个回答 | 0

2

个回答

提问


parfor question
Hello. I'm working with a very long for-cycle (50x200x200 matrix) and I'd like to use parfor to reduce calculating time. I'm w...

13 years 前 | 1 个回答 | 0

1

个回答