A répondu
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)

plus de 9 ans il y a | 2

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

plus de 9 ans il y a | 0

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

plus de 9 ans il y a | 1

| A accepté

A répondu
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...

plus de 9 ans il y a | 0

| A accepté

A répondu
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)...

plus de 9 ans il y a | 0

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

plus de 9 ans il y a | 0

A répondu
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...

plus de 9 ans il y a | 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...

plus de 9 ans il y a | 1 réponse | 1

1

réponse

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

plus de 10 ans il y a | 1 réponse | 0

1

réponse

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

plus de 10 ans il y a | 2 réponses | 1

2

réponses

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

plus de 10 ans il y a | 3 réponses | 0

3

réponses

A répondu
Fill a matrix with same values
Thank you :D

plus de 11 ans il y a | 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]...

plus de 11 ans il y a | 4 réponses | 0

4

réponses

A répondu
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...

plus de 11 ans il y a | 0

| A accepté

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

plus de 11 ans il y a | 2 réponses | 0

2

réponses

A répondu
¿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;...

plus de 11 ans il y a | 0

| A accepté

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

plus de 11 ans il y a | 1 réponse | 0

0

réponse

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

plus de 11 ans il y a | 1 réponse | 0

0

réponse

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

environ 12 ans il y a | 1 réponse | 0

1

réponse

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

plus de 12 ans il y a | 1 réponse | 0

1

réponse

Question


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

plus de 12 ans il y a | 2 réponses | 0

2

réponses

Question


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

plus de 12 ans il y a | 1 réponse | 0

1

réponse