Community Profile

photo

darova


Last seen: ein Tag ago Active since 2019

Statistics

All
  • Revival Level 2
  • Explorer
  • Thankful Level 4
  • First Review
  • 12 Month Streak
  • Guiding Light
  • Knowledgeable Level 4
  • First Answer
  • Solver

View badges

Content Feed

View by

Answered
I want to fit lines to the 3D points seen in the photo and get its shape But I do not know how to do it. please guide me. The points file is available.
SOmething is wrong with the data you attached s = importdata('POINT.txt'); x = s(:,1); y = s(:,2); z = s(:,3); plot3(x,y,z,...

ein Tag ago | 0

| accepted

Answered
How can I plot brillouin zone of 14 bravais lattice crystal
What about this [x,y,z] = sphere(4); surf(x,y,z,'facecolor','none')

ein Tag ago | 0

Answered
I have a set of experimental data in form of a parameter as a function of the other, keeping certain conditions constant. How do I know the best curve that fits the data?
Use fit x = 0:0.1:2; y = x.^2 + 0.2*rand(size(x)); f = fit(x(:),y(:),'poly2'); plot(x,y,'.r') line(x,f(x)) legend('origina...

4 Tage ago | 0

Answered
Using fit inside a loop
Try cell sf{1} = @(x) sin(x); sf{2} = @(x) cos(x); x = 0:0.1:10; plot(x,sf{1}(x),'r') line(x,sf{2}(x))

4 Tage ago | 0

Answered
i have to create a grid using meshgrid fn. and name it as grid_mat. i'm unable to name it and select points on it for different planets .
You can't assing variables that way a = b = 0; You can use deal [a,b] = deal(0); Or you can separately initiate variables a...

5 Tage ago | 0

Answered
How do you use contour if you only know f(x,y,z) but not z(x,y)?
Use isosurface with griddata [x,y,z] = meshgrid(-10:10); % x y z range f = x + y.^2 - z.^2; % function ...

5 Tage ago | 0

| accepted

Answered
Howextract results From pdeplot3D to plotthe temperature variation in XY Plan
You are looking for pdecont

7 Tage ago | 0

Answered
Calculating area volume from longitude, latitude and altitude
Convert spherical coordinates into cartesian using sph2cart Use alphaShape to build an object and calculate volume

7 Tage ago | 0

| accepted

Answered
How can I extrapolate following data to a certain value in x direction.
Make this changes to your code Transmission = [Tranmission Tansmission(end)]; Length = [Length 5000];

7 Tage ago | 0

| accepted

Answered
How to Interpolate between ROIs in 3D space
Maybe it will be helpfull t = linspace(0,2*pi,11)+pi/2; r = 3 + sin(5*t); % create a start [x,y] = pol2cart(t,r); ...

10 Tage ago | 0

Answered
How to generate Q4 element mesh in selected area?
What about this? x = [-10:-8 -7:7 8:10]; y = [-8:-6 -5:5 6:8]; [X,Y] = meshgrid(x,y); i1 = -8<X & X<8 & -6<Y & Y<6; % ...

10 Tage ago | 0

Answered
plot 5 indipendent vectors in 3D plot
Just use griddata to interpolate data Delta is represented by color. x = 20*rand(100,1)-10; % surface coordinates y = 20...

10 Tage ago | 0

| accepted

Answered
Image analysis. Measure the radius of a bending filament as a function of arc length
See this example. Red lines are normals from first edge/curve. I'd use polyxpoly to calculate intersections between normals and ...

12 Tage ago | 0

Answered
Time integration function in Matlab
Use trapz if you have numerical data Use integral for formula

13 Tage ago | 0

| accepted

Answered
I want to hide the circles and only plot centroids with "+" sign
binarize use regionprops

13 Tage ago | 0

Answered
How to rotate a surface(or a 2D plane) in 3D Cartesian coordinate ?
See this example: R = @(a) [cosd(a) -sind(a); sind(a) cosd(a)]; t = 0:.1:2*pi; [x,y] = pol2cart(t,5+sin(5*t)); line(x,y) v1...

13 Tage ago | 0

Answered
Solve multiple eigenvalue ODE problem with bvp4c
Remove those spaces

13 Tage ago | 0

Answered
Plot multiple contours in 3D without volume data
You can use surf t = linspace(0,2*pi,50); [x1,y1] = pol2cart(t,1+0.1*sin(5*t)); % first contour [x2,y2] = pol2cart(t,1); ...

13 Tage ago | 0

Answered
How to find Area Under the Curve of a Smoothing Spline Curve Fitted Model from Discrete Data Points ?
Use code instead of application x = [0.3 0.55 0.6 0.7 0.8 1.2 1.4 2.0 2.5 3.0 3.5 4.0]; y = [0.0010640542,0.0010009253,0.00097...

13 Tage ago | 0

Answered
Create local coordinate system and update throughout flight
Just find tangent of a trajectory x = 0:.1:pi; y = sin(x); u0 = diff(x); % component of a tangent v0 = diff(y)...

13 Tage ago | 0

Answered
Griddata generates duplicate points while plotting CFD imported 3D data on an xy Plane
There is something wrong with the data D = importdata('data.txt'); X = D.data(:,2); Y = D.data(:,3); Z = D.data(:,4); p...

13 Tage ago | 0

Answered
Import STL file and convert to Matrix
Try stlread to import geometry Use griddata to interpolate data

13 Tage ago | 0

Answered
Heatmap - how to get the plotted colors
Just scale values %Exp. Data=[0.216745778875956 0.0122005059399983 0.0162673412533310 0.00149830774701733 0.26338905594...

14 Tage ago | 0

Answered
1 D Unsteady Diffusion Equation by Finite Volume (Fully Implicit) Scheme
Try this simple difference scheme: lam = 0.5; % k*dt/rho/dx^2 n = 20; T = zeros(n); T(1,:) = 200; ...

17 Tage ago | 0

Answered
hello can you please help I'm getting this errorIndex in position 2 exceeds array bounds (must not exceed 1). Error in BetaNewmark_MDOF (line 21) xd(:,i+1)=xd(:,i)+(1-b)*dt*x
You are trying to access allements that don't exist. Try this % xdd(:,i), xdd(:,i+1) % WRONG xdd(i), xdd(i+1) ...

17 Tage ago | 0

Answered
Why do I get "Undefined function or variable" error?
I think your main code should be inside function body

17 Tage ago | 0

| accepted

Answered
Using Heun's Method but Problem With Increment
I think you should use index (i) everywhere. vh variable has two elements after first iteration You trying to assign two elemen...

20 Tage ago | 0

Answered
Sorting Excel values into new vector
Try this ind = find(abs(data-255)<0.1); % find all '255' numbers ind(end+1) = numel(data)+1; % add last i...

21 Tage ago | 0

Load more