Community Profile

photo

darova


211 total contributions since 2019

darova's Badges

  • 3 Month Streak
  • Knowledgeable Level 3
  • First Answer
  • Solver

View details...

Contributions in
View by

Answered
How to solve this system of ODEs
Look like system of equations It has many solutions. For example d=1:

14 hours ago | 0

Answered
how to plot a 3D surface from N by 3 matrix
Look for griddata()

14 hours ago | 0

Answered
Making a contour plot with 1-D z values?
You dont so much points for meshgrid, just make FaceColor - interp F = scatteredInterpolant(Re,We,PS); PSg = F(Reg,Weg); h = ...

17 hours ago | 0

Answered
Plot temperature variations using colored contours similar to 'surf' option for 3D object.
Simple example for edges clc,clear x = [1 2 1]; y = [1 1 0]; c = rand(3,10); % 10 colors for each node ...

3 days ago | 0

Answered
How to write a legend in latex format
Concatenation? Npc=2; legend1 = ['\Sigma_{i=1}^{', num2str(Npc) ,'Npc} x^\prime_i']; legend(legend1,'Total L_w','Noise');

3 days ago | 0

Answered
Increasing number of points in a plot without ruining the shape
Is it correct? (Not tested) x1red = linspace(xred(1),xblue(end),20); % more points for red curve % scaling red ...

3 days ago | 0

| accepted

Answered
Extract values between successive start stop indexes from a signal
I think there are tricks with vectorizing but i like simple and clear solution even it's slower x0 % your data ...

3 days ago | 0

| accepted

Answered
Fixing a plotting problem over a fixed axes
See attached file dy = max(spirals); indent = linspace(-255+dy, 255-dy,4); y=r*sin(t)+ indent(columns); FOr thicker line ...

4 days ago | 1

| accepted

Answered
Surface plots inside loop
Just collected all data and used griddata()

4 days ago | 0

| accepted

Answered
Draw partial spheroid include a spheroid
Use patch() to generate planes clc,clear R = 10; r = 3; t = linspace(0,pi/2,20); x = [r*cos(t) fliplr(R*cos(t))]; y = [r...

4 days ago | 0

Answered
smooth shading of patches in 3D - partially correct
Changed the script a bit clc,clear run data p = patch('Faces',F,'Vertices',V); set(p, 'FaceColor', [0.95 0.95 0.95]) gri...

4 days ago | 0

Answered
How do i find only the specific date of the maximum temperature?
max can also return index [M,I] = max(a); Read more in help: max suleiman abdullahi, I want you to accept my answer.

5 days ago | 0

Answered
Selecting a point on a scatter plot, saving index of point
You can use pdist2() and min() functions to select closest to your data points clc,clear x = linspace(0,10,20)'; y = sin(x)...

6 days ago | 1

| accepted

Answered
plot a 3D area on a ellipsoid
Chewed a bit

6 days ago | 1

| accepted

Answered
Find mean of rows containing decimal numbers in between integers in a column
Use ismembertol() or ismember() (round values to some tolerance if needed) to find indices of integer values Use loop to find m...

6 days ago | 0

Answered
Unable to link x-axis in subplot
Example clc,clear x = linspace(0,10); y1 = sin(x)./x; y2 = sin(x)/2; ax(1) = subplot(2,1,1); plot(x,y1) ax(2) = subplot...

6 days ago | 0

| accepted

Answered
Generating binary numbers from signal
Just changed an example from link you gave clc,clear fnx = @(x,fn) sin(2*pi*fn*x).*exp(-fn*abs(x)); t = linspace(0,1.2,57...

7 days ago | 0

| accepted

Answered
how to generate loop for given program
Then use for loop % a(1) = 2; % a(2) = 3; % a(3) = 4; % a(4) = 5; for i = 1:4 a(i) = i+1; end Simple

7 days ago | 0

Answered
Issues with the for loop
This should work new_daily_2006 = ids_2006*0; for i = 1:size(ids_2006,1) %* size od ids_2006 is 212*119*177 % i,j,tt ...

8 days ago | 0

Answered
How can I make my code run faster?
Shorter version of Laplacian_2D function. Is there any connection to gradient and laplacian built-n functions? un = circshift(u...

8 days ago | 0

Answered
How do you define boundary conditions for ode45 or bvp4c?
In function res: % ya(1) - y at a % ya(2) - dy/dt at a % yb(1) - y at b % yb(2) - dy/dt at b a and b you define in main s...

8 days ago | 0

Answered
Only include x labels on bottom subplot
Shorter version

8 days ago | 0

Answered
How to adjust my video to only save 30 fps while in my for loop that goes upto 20000 iterations?
If you want 20 sec video with 30 fps you just need to write 600 frames For dt=0.001 it is 10000 frames for 10 sec simulation so...

9 days ago | 0

| accepted

Answered
MATLAB Answers Wish-list #5 (and bug reports)
I want a button for spoiler Can't believe there is no such option on this forum

9 days ago | 0

Answered
Plot a vector with different colors on selected data
SOmething like this?

11 days ago | 0

Answered
Reflection of a fixed point on a 3D plain.
You have straight line ( vector), intersection point P, normal vector of a plane and you want to find vector Find cross produ...

13 days ago | 0

| accepted

Answered
Calculating arc length of piece wise cubic polynomial
I think the problem is in your arclength() function for t = ent:0.1:ext xd = 3*a*(t-ent)^2 + 2*b*(t-ent)+ c; ...

13 days ago | 1

| accepted

Answered
How to add Hann 5 cycles to the sine wave plot?
One full cycle of sine is 2pi You should make your argument of sine: 0 .. 2pi*5

14 days ago | 1

| accepted

Answered
How can we extract objects from a greyscale image?
What about bwareaopen() I = imread('example_filled2.jpg'); I1 = I < 40; I2 = bwareaopen(I1,3e3); imshow(I2) What i've got ...

15 days ago | 0

Answered
i want to find distances between coordinate points as i explained below?? any help??
With use of pdist2() A = [0 0]; B = [1 0]; C = [2 0]; [x,y] = meshgrid(0:2,1:2); % D G E H F I D_I = [x(:) y(:)]...

15 days ago | 0

| accepted

Load more