已回答
Contour plot using three 1D arrays
Use griddata or scatteredInterpolant

4 years 前 | 1

| 已接受

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

4 years 前 | 0

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

4 years 前 | 0

已回答
How do I calculate this definite integral in matlab
Try trapz

4 years 前 | 1

已回答
solving non-linear equations
Use cosd and sind for degrees

4 years 前 | 0

已回答
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

4 years 前 | 0

已回答
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...

4 years 前 | 0

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

4 years 前 | 0

已回答
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'...

4 years 前 | 0

已回答
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;

4 years 前 | 0

已回答
Creating second figure with different view
Use view() function

4 years 前 | 0

已回答
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

4 years 前 | 0

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

4 years 前 | 0

已回答
Cluster 3D data
Try clusterdata

4 years 前 | 1

| 已接受

已回答
vector fields in Matlab
Here is the mistake

4 years 前 | 0

已回答
how can I vectorize my code when multiple variables are present
Try to remove parenthesis

4 years 前 | 0

已回答
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...

4 years 前 | 0

已回答
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 ...

4 years 前 | 0

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

4 years 前 | 0

已回答
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,...

4 years 前 | 1

| 已接受

已回答
Getting data values using lat and lon indexes
I'd use interp2

4 years 前 | 0

| 已接受

已回答
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

4 years 前 | 1

已回答
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...

4 years 前 | 0

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

4 years 前 | 0

已回答
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 ...

4 years 前 | 0

| 已接受

已回答
Surface Integral of discrete data sampled in spherical coordinates
I think you forgout about

4 years 前 | 0

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

4 years 前 | 0

已回答
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...

4 years 前 | 0

| 已接受

已回答
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...

4 years 前 | 0

加载更多