Beantwortet
How to add a colormap manually as x-axis under an histogram?
Use colorbar contourf(peaks(60)) colormap cool colorbar('location','southoutside')

etwa 6 Jahre vor | 0

Beantwortet
How to get Current tenperature?
Use interp1 t0 = input('Enter time:\n'); if min(timeStamp)<t0 && t0<max(timeStamp) temp0 = interp1(tempF,timeStamp,t0); ...

etwa 6 Jahre vor | 0

Beantwortet
Search and select points form each quadrant
You can use pdist2 for this purpose D = pdist2([xt yt],[x(:) y(:)]); ix = D < 1; plot(x(ix),y(ix),'or') hold on plot(x,y,'....

etwa 6 Jahre vor | 0

Beantwortet
How to translate matrix to legend ?
What about strrep? str = 'by 1 my 1'; str1 = strrep(str,'1','2')

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
Unable to plot multiple fplot3 plots in a single figure window
After first using of fplot3 you have NCI variable (size 7x1) Second time you are trying to use fplot3 you should have NCI of si...

etwa 6 Jahre vor | 1

| akzeptiert

Beantwortet
How does the matlab contourf function work?
I pretty sure that MATLAB checks each 'plane' (that close to some level) on intersection Simply reducing the task to plane-plan...

etwa 6 Jahre vor | 0

Beantwortet
finding the tangent line to the endpoint of a curve
Maybe it would be helpfull clc,clear I0 = imread('test.png'); I1 = im2bw(I0); % binarize image I2 ...

etwa 6 Jahre vor | 0

Beantwortet
How to make horizontal lines to connect two different curves?
I really don't know how to describe this problem by words Your drawing is clear. Use interp1 yy = linspace(y1(1),y2(end),10); ...

etwa 6 Jahre vor | 2

| akzeptiert

Beantwortet
How can I detect line lies between two certain regions?
imbinarize image use bwareaopen to clear a bit use edge

etwa 6 Jahre vor | 0

Beantwortet
plot y Vs. X in heat-map plot
Try this x = rand(1000,1); y = rand(1000,1); R = 0.1; % circle radius D = pdist2([x y],[x y]); ...

etwa 6 Jahre vor | 1

Beantwortet
Making a square figure with pcolor
You can either use pcolor without X and Y vectors newTair = flipud(Tair_mean(50:250,50:250)); % flip matrix upside-down pc...

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
Fitting an Asphere to a set of 3D point cloud data
I tried usual paraboloid

etwa 6 Jahre vor | 1

Beantwortet
How to make the following contour plot in matlab?
Here is a shot I = imread('forest.tif'); [m,n] = size(I); [X,Y] = meshgrid( linspace(1,n/2,20), linspace(1,m,20) ); X = X+n/...

etwa 6 Jahre vor | 0

Beantwortet
Extracting points from a matrix tangential to a centreline
Here is what i did I moved data to origin and rotated at some points of centerline Once centerline is vertical i extract data ...

etwa 6 Jahre vor | 0

Beantwortet
Solving for rotation matrix: Align vector a with vector b, then rotate around vector b
Here is an idea Use dot product to calculate angle between vectors Use cross product to calculate normal vector of a plane...

etwa 6 Jahre vor | 1

| akzeptiert

Beantwortet
Set plot colour when assigned to a variable
try to change color axis caxis([min(Table.Activity) max(Table.Activity)]) colormap jet

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
coordinate system rotation and then calculate position in new (rotated) system
Here is the solution v1 = Rz*v(:); [az1,el1] = cart2sph(v1(1),v1(2),v1(3)); v2 = Ry*v1(:); [az2,el2] = cart2sph(v2(1),v2(2),...

etwa 6 Jahre vor | 0

Beantwortet
How to get the length of flame front
You have to find first value in each column ii = zeros(columns,1) jj = 1:columns; for j = 1:columns ii(j) = find(M(:,j...

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
How to obtain a meshgrid surf plot on the right coordinate location?
You are interpolation in Z direction Try to interpolate in X yy = linspace(min(y),max(y),20); zz = ... [Y,Z] = meshgrid(yy,z...

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
how can i solve the error "many input arguments in the following code"
Here is your function And this is how you are calling it

etwa 6 Jahre vor | 1

| akzeptiert

Beantwortet
Script Efficiency for Plotting Spheres
Try to reduce mesh [X,Y,Z] = sphere(5); If you have so many sphere maybe you don't need inside part maybe slice function ...

etwa 6 Jahre vor | 0

Beantwortet
change the data tip percision
Here is the tip

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
Finding Minimum Distance Between Points to Find Indexed Variable
Use pdist2 to find closest points D = pdist2(Fo(:),Foyqlimit(:)); % every combination (Matrix 1251x4) [~,ix] = min(D);...

etwa 6 Jahre vor | 0

Beantwortet
Finding distance between two curves at diffrent points
With use of polyxpoly clc,clear x = 0:0.1:10; y1 = sin(x); % data 1 y2 = sqrt(x); % d...

etwa 6 Jahre vor | 1

| akzeptiert

Beantwortet
How can I calculate distance between a point in a given radius inside a geographic coordinate grid?
Here is how i see solution for this question clc,clear long = [57;52.1;50;52;43.5;50;53.5;52;43.2]; lat = [16;15.7;13.5;14....

etwa 6 Jahre vor | 2

| akzeptiert

Beantwortet
How to obtain a surface curve plane located on specific heights and with a different vector of color representation?
Use cdata property [x,y,z] = peaks(20); c = sphere(19); surf(x,y,z,'cdata',c)

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
3D plotting of a spherical gyroid with thickness
Use isosurface clc,clear cla R = 10; [x,y,z] = meshgrid(-R:0.3:R); v = sin(x).*cos(y) + sin(y).*cos(z) + sin(z).*cos(x); ...

etwa 6 Jahre vor | 0

Beantwortet
Phase diagram of a second-order differential equation
It's your equation Assume you have a curve Then to create a quiver or streamline you need ( , , u, v ) I looked here and ...

etwa 6 Jahre vor | 1

| akzeptiert

Beantwortet
How to change the numbering format of a datacursor (or datatip) for histograms?
Try to edit Text Function Change precision to 6 or 8 (places fo digits)

etwa 6 Jahre vor | 1

| akzeptiert

Beantwortet
How to plot 3D pdf without meshgrid
Without meshgrid x = 1:3; y = 1:4; [X,Y] = meshgrid(x,y) X1 = repmat(x,[length(y) 1]) Y1 = repmat(y(:),[1 length(x)]) Or y...

etwa 6 Jahre vor | 0

Mehr laden