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

environ 6 ans il y a | 0

Réponse apportée
imagesc from 1D array with coordinates and values
Use griddata

environ 6 ans il y a | 0

Réponse apportée
Add 3 trendlines in a scatterplot figure
Use polyfit a1 = polyfit(Time,A,1); A1 = polyval(a1,Time); plot(Time,A1)

environ 6 ans il y a | 0

Réponse apportée
1-D Convection Equation is converging to 0. Thomas Algoritm using Back Time Center Scheme
Try this solution

environ 6 ans il y a | 0

Réponse apportée
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...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
for loop that loops through a changing paramter of ode45
Here is the problem

environ 6 ans il y a | 0

Réponse apportée
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...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
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...

environ 6 ans il y a | 1

| A accepté

Réponse apportée
I have a question about the Quadratic formula on Matlab. How can I use of IF statement for this formula and how can I find third and fourth output. For example, for a=6 b=5 c=-4.
Use this formula if D == 0 x = -b/2/a; else x = [-b+sqrt(D) -b-sqrt(D)]/2/a; end

environ 6 ans il y a | 0

Réponse apportée
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] ...

environ 6 ans il y a | 0

Réponse apportée
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...

environ 6 ans il y a | 1

| A accepté

Réponse apportée
Why do I get 'Array indices must be positive integers or logical values.' trying to solve a Simpsons 1/3 Rule Problem?
Try my recommendations

environ 6 ans il y a | 0

| A accepté

Réponse apportée
Plot straight line between points
Try this solution

environ 6 ans il y a | 0

Réponse apportée
Error using sym/subsindex (line 853) while using symsum
Try this solution

environ 6 ans il y a | 0

| A accepté

Réponse apportée
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 ....

environ 6 ans il y a | 1

| A accepté

Réponse apportée
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= ...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
Rock Being Launched in a Pool
See this solution

environ 6 ans il y a | 0

Réponse apportée
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

environ 6 ans il y a | 0

Réponse apportée
Change The values of points between two lines
Connect lines and use inpolygon

environ 6 ans il y a | 0

| A accepté

Réponse apportée
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...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
How can I get N to be a different value for a different t?
Try this modification

environ 6 ans il y a | 0

Réponse apportée
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)

environ 6 ans il y a | 0

Réponse apportée
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)...

environ 6 ans il y a | 0

Réponse apportée
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...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
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); ...

environ 6 ans il y a | 0

Réponse apportée
How to reduce the solution to one expression
Try this solution

environ 6 ans il y a | 0

Réponse apportée
How to make an array of function outputs?
Try this solution

environ 6 ans il y a | 0

| A accepté

Réponse apportée
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

environ 6 ans il y a | 0

Réponse apportée
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; ...

environ 6 ans il y a | 0

| A accepté

Charger plus