Beantwortet
Trying to solve motion equation using ODE45
The problem Try this modifications [t,y] = ode45(@vdp1,[0 1e-6],[2900 ; 0]);

etwa 6 Jahre vor | 0

Beantwortet
imagesc from 1D array with coordinates and values
Use griddata

etwa 6 Jahre vor | 0

Beantwortet
Add 3 trendlines in a scatterplot figure
Use polyfit a1 = polyfit(Time,A,1); A1 = polyval(a1,Time); plot(Time,A1)

etwa 6 Jahre vor | 0

Beantwortet
How to create a line around the earth map and then getting the location of a specific point on it?
Here is a start: draw sphere, draw circle. Pick the point you want Now you need axis of rotation to rotate your circle - use...

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
for loop that loops through a changing paramter of ode45
Here is the problem

etwa 6 Jahre vor | 0

Beantwortet
How to plot an ODE?
Use for loop to solve equation 5 times for each n n = [1 2 3 5 inf]; f = @(t,y,n) 1-t/n+y; for i = 1:length(n) [t,y] = o...

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
Index exceeds the number of array element (2). Anyone can help me??
I think it happens because index size is changing Suppose size of index is 15. You enter for loop, numel(index)=15 BUt when...

etwa 6 Jahre vor | 1

| akzeptiert

Beantwortet
How to customize rectangular face meshing for 3D model?
If model is simple it can be created in MATLAB t = linspace(0,2*pi,30); z = linspace(0,10,20); [x,y] = pol2cart(t,1); [X,Z] ...

etwa 6 Jahre vor | 0

Beantwortet
Slice and streamslice along diagonal
Try this simple example [x,y,z,v] = flow; [Z,Y] = meshgrid(-3:0.5:3); X = 3+(Z.^2+Y.^2)/5; slice(x,y,z,v,X,Y,Z) hold on sl...

etwa 6 Jahre vor | 1

| akzeptiert

Beantwortet
Plot straight line between points
Try this solution

etwa 6 Jahre vor | 0

Beantwortet
Error using sym/subsindex (line 853) while using symsum
Try this solution

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
Plotting thickness data to a cylinder.
Use this A = xlsread('test matlab.xlsx'); %% x = A(:,2); y = A(:,3); T = A(:,5:end); z = 1:size(t,2); % 1 2 3 ....

etwa 6 Jahre vor | 1

| akzeptiert

Beantwortet
How can I solve a algebraic equation with "fzero" ?
So you want to have 3 independent variables: , and Here is one way: use isosurface S=0.7; a=0; m=1; k1=0.01:0.05:2.01;% k= ...

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
Rock Being Launched in a Pool
See this solution

etwa 6 Jahre vor | 0

Beantwortet
Is there a way to read only two columns of a file with textscan?
Read whole data using importdata or readtable and choose only columns you want

etwa 6 Jahre vor | 0

Beantwortet
Change The values of points between two lines
Connect lines and use inpolygon

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
How do I find the overlapping volume of multiple 3D rectangles?
Try this simple script clc,clear % generate some data [x1,y1,z1] = meshgrid([0 10]); [x2,y2,z2] = meshgrid([4 15]); y...

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
How can I get N to be a different value for a different t?
Try this modification

etwa 6 Jahre vor | 0

Beantwortet
How to convert the table with x,y, and value to image?
Try for loop for i = 1:length(x) A(y(i),x(i)) = v(i); end imshow(A)

etwa 6 Jahre vor | 0

Beantwortet
Change color of points if the coordinates are the same
Look on this idea create matrix round data (snap to grid) Fill matrix like for i = 1:100 A(y(i),x(i)) = A(y(i),x(i)...

etwa 6 Jahre vor | 0

Beantwortet
How to find a data based on specific range of specific column?
use logical operators % T - your table ix = 30 < T(:,1) & T(:,1) < 36; % indices T(ix,:) % r...

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
Export the workspace exactly as displayed to Excel?
try this for i = 1:3 str = sprintf('image46%d',i+43); % name of new sheet xlswrite('data.xlsx',rand(5), str); ...

etwa 6 Jahre vor | 0

Beantwortet
How to reduce the solution to one expression
Try this solution

etwa 6 Jahre vor | 0

Beantwortet
How to make an array of function outputs?
Try this solution

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
Help with HW please
See this witty trick x = 0:.1:20; y = sin(x); y1 = y; y1(y1<0.5) = nan; plot(x,y,x,y1,'.-r') result

etwa 6 Jahre vor | 0

Beantwortet
How to calculate the "half" distance within peaks
Concantenate indices of each peak and sort them ix = sort([ix1 ix2]); % sort all indices n = round(length(ix)/2)*2; ...

etwa 6 Jahre vor | 0

| akzeptiert

Mehr laden