Answered
Contour plot using three 1D arrays
Use griddata or scatteredInterpolant

5 years ago | 1

| accepted

Answered
How to change each plot to individual titles?
Create cell array str = {'plot1', 'plot2', 'myplot','graph'}; for i = 1:4 title(str{i}) end

5 years ago | 0

Answered
How to find the value of X to Y = 70?
See this solution interp1(y,x,70)

5 years ago | 0

Answered
How do I calculate this definite integral in matlab
Try trapz

5 years ago | 1

Answered
solving non-linear equations
Use cosd and sind for degrees

5 years ago | 0

Answered
3D Cartesian Contour Plot with 1 dimensional XYZC points
Try griddata or scatteredInterpolant to generate 3D matrices Use isosurface to visualize specific C color value

5 years ago | 0

Answered
2D Animated Orientation Vector of Satellite in Orbit
Here is an example clc,clear t = linspace(0,2*pi,30); [x,y] = pol2cart(t,2); dx = diff(x); dy = diff(y); plot(x,y) ho...

5 years ago | 0

Answered
trying to create a vector storing the first value of long_way
s index can't be float number

5 years ago | 0

Answered
Surf plot as .svg file with many grid lines too dark
What about this approach? clc,clear [x,y,z] = peaks(59); ii = 1:5:size(x,1); jj = 1:5:size(x,2); surf(x,y,z,'edgecolor'...

5 years ago | 0

Answered
Solve non-linear equations system parametrically, Why are the answers empty?
You didn't assign values to these variables % h k1 Lz1 k21 Lz2 k32 Lz3 a1 a2 a3 b1 b2 b3 w1 w2 w3 r1 r2 r3;

5 years ago | 0

Answered
Creating second figure with different view
Use view() function

5 years ago | 0

Answered
Two-body problem program gone wrong
rddot = -mue*rv/R^3; This line tells that you have non-constant angular acceleration So it's ok if you orbit is changing

5 years ago | 0

Answered
Plotting the iso-surface in a specific range of values
Use for loop to create several value

5 years ago | 0

Answered
Cluster 3D data
Try clusterdata

5 years ago | 1

| accepted

Answered
vector fields in Matlab
Here is the mistake

5 years ago | 0

Answered
how can I vectorize my code when multiple variables are present
Try to remove parenthesis

5 years ago | 0

Answered
Solve 4 circles with known centers and radii
You can try to use image processing toolbox clc,clear [x,y] = meshgrid(1:100); A1 = (x-20).^2+ (y-30).^2 < 15^2; A2 = (x-5...

5 years ago | 0

Answered
Help with double for loop
I'll give you a start T= zeros(m,n); % preallocation T(1,:) = % initial condition for i = 1:m-1 for j = 1:n-1 ...

5 years ago | 0

Answered
How to simplify x and y coordinates or numbers
Try meshgrid() [x,y] = meshgrid(1:4,1:3); [x(:) y(:)]

5 years ago | 0

Answered
How can I plot a function containing an integral ?
I suggest you to use numerical approach - cumtrapz clc,clear x = linspace(1,15,100); f = 2*x; sf = cumtrapz(x,f); plot(x,...

5 years ago | 1

| accepted

Answered
Getting data values using lat and lon indexes
I'd use interp2

5 years ago | 0

| accepted

Answered
How can I snap my data point to the border for a colormap/heatmap?
Here is the idea create new mesh for the contour interpolate values

5 years ago | 1

Answered
billiard animation, set multiple rectangles, funny guy
Here is an example clc,clear g = 9.8; n = 3; x0 = rand(n,1); y0 = rand(n,1); vx = rand(n,1); vy = rand(n,1); dt = 0.03...

5 years ago | 0

Answered
how to solve this ode:
Try this way [t,y]=ode45(@EQ2,[0:1800],[0,0]);

5 years ago | 0

Answered
Is there a way to count within the pattern, different points in a graph before repeating?
You can round data to integer and use unique x0 = rand(10,1); x1 = round(10*x0); % round data to 1 symbol after the dot ...

5 years ago | 0

| accepted

Answered
Surface Integral of discrete data sampled in spherical coordinates
I think you forgout about

5 years ago | 0

Answered
A more (computational) performant way to plot multiple scatter3 plots in a figure
Use plot3 instead of scatter3 Scatter is verry expensive function

5 years ago | 0

Answered
Timespan within Ode45
change heade of a function function dYdt = deri_Y(t,Y,m0) call the function for m0 = [0.4 0.5 1] [tSol_1,YSol_1] = ode45...

5 years ago | 0

| accepted

Answered
Comparing the dots in two images and eliminating the dots which don't have pairs
See this example A1 = imread('image1.png'); A2 = imread('image2.png'); I1 = rgb2gray(A1); % convert ot grayscale I2...

5 years ago | 0

Load more