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)

8 years ago | 2

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

8 years ago | 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

8 years ago | 1

| accepted

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

8 years ago | 0

| accepted

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

8 years ago | 0

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

8 years ago | 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...

8 years ago | 2

Question

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

8 years ago | 1 answer | 1

### 1

Question

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

9 years ago | 1 answer | 0

### 1

Question

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

9 years ago | 2 answers | 1

### 2

Question

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

9 years ago | 3 answers | 0

### 3

Fill a matrix with same values
Thank you :D

10 years ago | 0

Question

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

10 years ago | 4 answers | 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...

10 years ago | 0

| accepted

Question

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

10 years ago | 2 answers | 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;...

10 years ago | 0

| accepted

Question

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

10 years ago | 0 answers | 0

### 0

Question

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

10 years ago | 0 answers | 0

### 0

Question

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

11 years ago | 1 answer | 0

### 1

Question

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

11 years ago | 1 answer | 0

### 1

Question

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

11 years ago | 2 answers | 0