Answered
Numerical Integration using intgrad3
If i understood you correctly: you have normal vector and want to rebuild surface So for each vector you can create small plane...

6 years ago | 0

Answered
What is the better way to plot non consistent size 4D data ?
Try slice clc,clear load DATA.mat [X1,Y1,Z1] = meshgrid(X,Y,Z); W1 = permute(W,[2 1 3]); xs = [min(X)+100 max(X)-100]; y...

6 years ago | 0

| accepted

Answered
Graphing a hyperbola with tangent lines
I just exstracted data from ezplot handle syms x y F = 2*y-3*x-3*x*y+x^2+y^2-6; h = ezplot(F,[-1 1]*10); x1 = get(h(1),'xdat...

6 years ago | 0

Answered
Delimitation of cylinder function
You can build the surface manually (without using cylinder) x = 1.983:0.1:10; r = 1/2*sin(25/68*x-2.3)+4.25; t = linspace(0,2...

6 years ago | 0

Answered
Up down counter in command line
Example n = 3; sample = [1:n flip(1:n)]; vector = repmat(sample,[1 3]);

6 years ago | 0

Answered
Merging and accessing data from excel
Something like that A1 = [] A = []; for i = 1:n filename = ['data' num2str(i)]; A1 = xlsread(filnemae); A = [A...

6 years ago | 0

| accepted

Answered
Removing zeros from workspace
Try data(data==0) = [];

6 years ago | 0

Answered
solving 2D FitzHugh-Nagumo system
How do you do the no flux boundary conditions for d2u/dx2 on the left and right edges of the sheet and the top and bottom edges ...

6 years ago | 0

Answered
How do I use BVP5c (or 4c) iteratively to solve BVP for different values of a known parameter
Passing extra parameters sol = bvp5c(@(x,y)ODE(x,y,ar,g),@(a,b)ODE_bc(a,b,ar,g),sol,options); %use previous solution as inita...

6 years ago | 1

| accepted

Answered
Short-cut from one line to another when I edit the script
There is "bookmark". Move to desired line, press Ctrl+F2 (bookmark is set) Press F2 to move bookmark Can you show your script?...

6 years ago | 0

Answered
How can I plot the vector field of a differential equation on the real line?
I reached some success. Look, it should me heplpfull clc,clear [X,Y] = meshgrid(-2:0.2:2); F = @(X,Y) 4*Y.^2 - 16; [x,y] =...

6 years ago | 1

Answered
How to find volume of intersected part when two spheres are intersected using Matlab?
I used cosine theorem to calculate a1 and a2 Volume of sphere sector for first sphere can be found as: See attached sc...

6 years ago | 0

Answered
simulation of a manipulator
Sorry im not familiar with Simulink But if it was a code then you should check x0 with all points of surface tol = min(abs(x0-...

6 years ago | 0

Answered
double integration with loop
Here is a shot z0 = 0:0.001:0.03; c = z0*0; Brt = @(z1,r) z1+r; e = 0.1; ri = 0; re = 1; ro = 15; v = 2; dF = @(z1,r) 2...

6 years ago | 0

| accepted

Answered
Derivatives of graph from points
If you timestep (0.25) doesn't change use gradient velocity = gradient(Position,Time); Use diff if timestep is different velo...

6 years ago | 0

Answered
bvp4c error
I changed timespan solinit = bvpinit([0,0.1],[1,1]);

6 years ago | 0

Answered
import data from numeric excel file e+08 NaN problem
Boundaries of double precision >> realmin ans = 2.2251e-308 >> realmax ans = 1.7977e+308 But you have 2.21911e+087251...

6 years ago | 0

| accepted

Answered
I need to plot multiple functions in one plot, in one figure, within a for loop
What about figure?

6 years ago | 1

| accepted

Answered
I have an array of data I want to plot circular contour with those data
Here is my solution clc,clear T = [200.00 199.94 199.85 199.71 199.51 199.26 198.96 198.60 198...

6 years ago | 1

| accepted

Answered
Adding Data Already Existing Excel Sheets
Try writematrix writematrix(M,'Sample.xlsx','Sheet',1,'Range','D3:D6')

6 years ago | 0

| accepted

Answered
How to plot a Matrix of 0's and 1's
Use slice or scatter3

6 years ago | 0

Answered
How do I plot a new trajectory every time I run through a loop
I have some helpfull tips refresh your initial conditions every time you change angle refresh angle of trajectory every iter...

6 years ago | 0

| accepted

Answered
wrapping a value onto 3D surface of an irregular pipe
Here is the succesfull solution X = load('Xhole.txt'); Y = load('Yhole.txt'); Z = load('Depth.txt'); Z = repmat(Z,[1 180]); ...

6 years ago | 0

| accepted

Answered
How to access the data of contourf function to decides whether the interior of the contour is filled or not?
You can access to each contour separately [C,h] = contourf(p, [2 2]); h1 = get(h,'children'); for i = 1:length(h1) x = g...

6 years ago | 0

| accepted

Answered
How can I make the trajectory of robot with distance and angle values.
I maded simple example for you L1 = 5; L2 = 3; L3 = 4; t1 = linspace(30,120,20)'; t2 = linspace(10,90,20)'; t3 = linspace(...

6 years ago | 0

| accepted

Answered
maximum points on the surface
Here is my achievement X = xlsread('testEffx.xlsx','x'); Y = xlsread('testEffx.xlsx','y'); Z = xlsread('testEffx.xlsx','z'); ...

6 years ago | 0

| accepted

Answered
how to divide an enclosed area
My solution [X,Y,Z] = peaks(100); ix1 = (X-0.7).^2 + (Y-0.7).^2 > 2^2; ix2 = (X+0.7).^2 + (Y-0.7).^2 > 2^2; ix3 = (X+0.0).^2...

6 years ago | 0

Load more