Community Profile

photo

darova


308 total contributions since 2019

darova's Badges

  • Thankful Level 2
  • 6 Month Streak
  • Revival Level 1
  • Knowledgeable Level 4
  • Pro
  • First Answer
  • Solver

View details...

Contributions in
View by

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

alrededor de 9 horas ago | 0

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

1 día ago | 0

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

1 día ago | 0

Answered
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])

1 día ago | 0

| accepted

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

1 día ago | 0

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

1 día ago | 0

| accepted

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

1 día ago | 0

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

2 días ago | 1

| accepted

Answered
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);

2 días ago | 0

Answered
Vectorizing multiple for loops in Matlab
I changed your code a bit See attached script

2 días ago | 1

| accepted

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

2 días ago | 2

| accepted

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

2 días ago | 0

Answered
Drawing lines like streamslice
Explanations: result See attached script

2 días ago | 0

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

3 días ago | 0

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

3 días ago | 0

Answered
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

3 días ago | 0

| accepted

Answered
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

4 días ago | 0

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

4 días ago | 0

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

4 días ago | 0

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

4 días ago | 0

Answered
Write string into excel
I suggest you to write all you want in cell array then write it to Excel file A = cell(5,1); % preallocate cell ...

4 días ago | 0

| accepted

Answered
could anyone help me how to display all the numbers inaddition to the numbers present.
I'd divide you task in several steps: Use for loop to consider each row separately Use ismember() to identificate which number...

4 días ago | 0

Answered
How to make a directed, circular chord plot in MATLAB
Here is a simple method how to draw arcs see attached script

4 días ago | 0

Answered
Which Area is in right/left side of the other
If you are moving along the line you can get direction vector Then to pick any point left to line: Any point right to line...

5 días ago | 1

| accepted

Answered
Subplots with multiple axes
I think you mean this n = 10; % 10 subplot but only 4 of them are used ? subplot(1,n,1); plot(x,y,'.-'); subplot...

5 días ago | 0

Answered
Make Random Walk into 3D
I do this dt = .01; [x, y, z] = deal( 0 ); [X,Y,Z] = sphere(30); surf(X,Y,Z,'edgecolor',[1 1 1]*0.8,'Facecolor','none') h...

5 días ago | 0

Answered
How to get values at different interval for ode45
Use for loop to get results for x = 0: 0.1: 1 (11 curves) hold on for x = 0:0.1:1 [t,u] = ode45(@equation, [0 1], [x 0]) p...

5 días ago | 0

Answered
How can I find maximums in the intensity profile and display it in the original image ?
I think the problem is in order of points. MAthworks help: improfile Pixel-value cross-sections along line segments Try this ...

6 días ago | 1

| accepted

Answered
colored Line plot according to a third variable
clc,clear % generate some data x = linspace(0,10,10); y = x.^2; x = [ x nan ]; % i added nan for 'patch...

8 días ago | 0

Load more