Beantwortet
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...

etwa 6 Jahre vor | 0

Beantwortet
How to solve a nonlinear non-transcendental equation numerically- I have a non-linear non-transcendental equation, I have tried vpasolve function but it does not provide correct roots, do you know how can I find the roots of such an equation? Thanks
I tried this clc,clear c1 = 1; c2 = 2; c3 = 3; L = 5; syms landa f = (c1-c2*landa^4)*((sinh(landa*L))^2 - (sin(landa*L)...

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
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...

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
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...

etwa 6 Jahre vor | 0

Beantwortet
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...

etwa 6 Jahre vor | 0

Beantwortet
Code runs and gets stuck running without producing results ode45
What is wrong

etwa 6 Jahre vor | 0

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

etwa 6 Jahre vor | 0

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

etwa 6 Jahre vor | 0

| akzeptiert

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

etwa 6 Jahre vor | 0

Beantwortet
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 ...

etwa 6 Jahre vor | 0

Beantwortet
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...

etwa 6 Jahre vor | 1

| akzeptiert

Beantwortet
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?...

etwa 6 Jahre vor | 0

Beantwortet
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] =...

etwa 6 Jahre vor | 1

Beantwortet
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...

etwa 6 Jahre vor | 0

Beantwortet
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-...

etwa 6 Jahre vor | 0

Beantwortet
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...

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
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...

etwa 6 Jahre vor | 0

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

etwa 6 Jahre vor | 0

Beantwortet
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...

etwa 6 Jahre vor | 0

| akzeptiert

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

etwa 6 Jahre vor | 1

| akzeptiert

Beantwortet
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...

etwa 6 Jahre vor | 1

| akzeptiert

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

etwa 6 Jahre vor | 0

| akzeptiert

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

etwa 6 Jahre vor | 0

Beantwortet
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...

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
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]); ...

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
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...

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
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(...

etwa 6 Jahre vor | 0

| akzeptiert

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

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
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...

etwa 6 Jahre vor | 0

Mehr laden