Respondida
How can I plot a mesh, surface or a contour from discrete vector data ?
If your data is in vector form use griddata to create 3D array x = linspace(min(X0(:)), max(X0(:)), 50); y = linspace(min(Y0(:...

más de 6 años hace | 1

| aceptada

Respondida
Scaling of intensity value of captured jpg image
I'm not familiar with DICOM images but looks simple: I1 = imread('3.jpg'); I2 = rgb2gray(I1); I3 = I2-min(I2); ...

más de 6 años hace | 0

Respondida
Generation of similar vectors
What about interp1()? load data.mat y = data; x = 1:length(y); x1 = linspace(x(1),x(end),1000); y1 = interp1(x,y,x1); ...

más de 6 años hace | 0

| aceptada

Respondida
How to use fillup3 to color shape?
One aproach p=[11,10,16]; q=[11,10,18]; r=[15,9,18]; M=[p;q;p;r;q;r]; i = randi(6,1,6); % mix indices cm = jet(6);...

más de 6 años hace | 0

| aceptada

Respondida
Is there a way to mark a certain point a 3D plot plotted by the mesh function?
Yes. THere are a few methods: plot3(), scatter3()

más de 6 años hace | 1

Respondida
How can I add a diagonal gradient and corresponding colorbar to a plot?
An example: [X,Y] = meshgrid(1:0.1:3); Z = X+Y; pcolor(X,Y,Z) shading interp colorbar('Location','NorthOutside') You can a...

más de 6 años hace | 0

| aceptada

Respondida
Plot 3D matrix with complex values
Try pcolor pcolor(A(:,1,:)) % display first matrix

más de 6 años hace | 0

Respondida
How to draw circle in a 3D space?
Another version Rotation matrix from HERE

más de 6 años hace | 0

Respondida
Scaling color with selected axis data
Why not use surf()? Color lines using patch() clc,clear % parameters x= [0:1:30]' ; y= linspace(0.1,10,length(x)) ; [X,Y...

más de 6 años hace | 0

| aceptada

Respondida
Variable cannot be overwritten in an if loop
Just remove

más de 6 años hace | 0

Respondida
plot volumetric spherical coordinate data
Use isosurface to plot data at specific value example clc,clear % generate some data theta1 = linspace(-1,1,60)*pi; p...

más de 6 años hace | 0

Respondida
How to calculate left ventricle ejection fraction?
There is an example with using impoly I = imread('img1.png'); imshow(I) h = impoly; % draw polygon msk = h.c...

más de 6 años hace | 0

| aceptada

Respondida
How to compute equation only for x(y>0)
Take Ew where Pw>0 Ew = (1369*((alphaa*x)+(alphar.*y)+(alphai*z)))/1000 % alphaa and alphai are constants. alphar is only one d...

más de 6 años hace | 0

Respondida
How to make a scatter plot of a 2D field in a map and add contour lines of a different field in the same map, without the contour command messing up with the color scale of the scatter command?
Max value of batim is 1000, so MATLAB automaticaly rescale color range for [0 1000] try set(gca,'Clim',[0 30])

más de 6 años hace | 1

| aceptada

Respondida
How to plot in for loop?
You re comparing wrong variable if i<18.5 % maybe bmi(i) < 18.5 Forgot hold on hold on You draw all data together ins...

más de 6 años hace | 1

| aceptada

Respondida
Solution of non linear equation
Maybe there is no such a and c! I used isosurface to create several combinations: clc,clear cla [a,c,y] = meshgrid(0:0.5:5)...

más de 6 años hace | 0

| aceptada

Respondida
plotting a volume data in x and y plane
Use volumeslice() or contourslice()

más de 6 años hace | 0

| aceptada

Respondida
Surf plot with a mask
Use CData property: [X,Y] = meshgrid(-5:5); Z = -X.^2-Y.^2; C = rand(size(Z)); surf(X,Y,Z,'Cdata',C)

más de 6 años hace | 2

| aceptada

Respondida
help me to write a code for processing an audio signal using taylor series
Try gradient instead of diff dx = gradient(x); dx2 = gradient(dx); result = x + (h.*dx) + (h^2.*dx2)./factorial(2);

más de 6 años hace | 0

| aceptada

Respondida
How to find the distances between two points in X-Y plane?
Use euclidean distance d = sqrt( (x2-x1).^2 + (y2-y1).^2 );

más de 6 años hace | 2

| aceptada

Respondida
How to make the binarized image clearer
Pay attention that you don't extract colormap This only extracts indexed image (see workspace, I is of size [369x574x1]) I = i...

más de 6 años hace | 0

Respondida
Drawing lines like streamslice
Explanations: result See attached script

más de 6 años hace | 0

| aceptada

Respondida
I need help with plotting streamlines and velocity field
Use gradient() and streamline()

más de 6 años hace | 0

Respondida
How can I intersect a line and a 3D object (cube, sphere, prism)?
It is a pyramid. If you want to know if line intersects pyramid you should inspect each plane of it Once you have all interse...

más de 6 años hace | 0

Respondida
Full fill a rectangle shape in an image
Use convhull or boundary to get contour of your figure Then use inpolygon to fill this shape

más de 6 años hace | 0

| aceptada

Respondida
Do the isosurfaces merely indicate a single value or do they contain information on all the value above the threshold?
You should plot multiple isosurfaces since isovalue should be a scalar YOu can use for loop for that purpose

más de 6 años hace | 1

Respondida
How to color the area between lines that are vectors, no functions
I created some figure and lines I rotated lines and created new figure (yellow) Painted faces to white and removed edg...

más de 6 años hace | 0

Respondida
Setting the distance between 2 lines?
What about for loop? width = 10; dist = 10; x0 = 0; hold on for i = 1:4 xline(x0+(width+dist)*i,'Linewidth',width) en...

más de 6 años hace | 0

Respondida
color intensity showing z values
You should use griddata() and pcolor()

más de 6 años hace | 0

Cargar más