Answered
Plot differing matrices vs time
Try for loop for i = 0:99 surface(A(1:3+i*3,:)+i) end

6 years ago | 0

| accepted

Answered
Time of Flight measurement
Try this trick p = [0.0772 0.7149 0.1256 0.7588 0.1878 0.8231 0.2431 0.7646 0.2869 0.3114 ...

6 years ago | 1

Answered
How to show a .tif file with projected coordinate system in geographic system?
As i understood you correctly: you want to have grid line/dots on your image Here is an example A = zeros(100); ...

6 years ago | 0

Answered
Plotting streamlines in 3D from a non-rectangular grid
I don't know what is wrong with streamline.however it's not my first time when it's not working (quiver3 works ok by the way) B...

6 years ago | 0

| accepted

Answered
How do I convert the binary valued column to decimal?
Try this A = readtable('just_adder_1p2_ABS_matlab.csv'); A1 = table2array(A(:,2)); A2 = bin2dec(num2str(A1));

6 years ago | 0

| accepted

Answered
How to assign desired names for created files by Matlab?
Simple example for i = 1:5 s = sprintf('data%d',i); A = rand(3); writematrix(A,s) end

6 years ago | 0

| accepted

Answered
3 dimensional plotting by varying the initial conditions
Try quiver3 and streamline clc,clear cla r = 0.60516; K = 8.97523; A0 = 0.4; gammaA = 0.04; eps = 0.0037...

6 years ago | 0

Answered
Correcting the label in a 3D scatter plot
I used currentPoint property of callback to get coordinates of mouseclick currentPoint returns 2 points in 3D space. I used cro...

6 years ago | 1

| accepted

Answered
How to side by side a subplot 12 images
You can concantenate all you imagesc into one for i=1:length(info.Image) F1=fitsread('N20190713S0564.fits','image',i); ...

6 years ago | 0

| accepted

Answered
Heat Conduction in 1D with Finite Differences
I have some suggestions to your code. Look

6 years ago | 0

| accepted

Answered
How to take mean of rows of particular value?
Sort your data and use for loop schematic code (not tested) s = 0; % sum of group data k = 1; ...

6 years ago | 0

| accepted

Answered
How to do this loop
Simple example p = [0.0979 0.1915 0.2707 0.1944 0.4505 0.2968 0.5541 0.4605 0.5956 0.6184 ...

6 years ago | 1

| accepted

Answered
please help me visualize the analytical solution of my model
Thank you for clear code. Everything looks correct (i didn't tested. it only looks) You have x y and t independent variables, i...

6 years ago | 1

| accepted

Answered
Input result derivative into ode45
Here is an idea Where M X F as following (sorry couldn't finish matrix, it's too long) Then just put all those matrices ...

6 years ago | 0

| accepted

Answered
hasFrame and readFrame are not working in synchrony.
Just get numer of frames xyloObj = VideoReader('xylophone.mp4'); n = xyloObj.NumberOfFrames; for i = 1:n fr = read(xyloO...

6 years ago | 0

Answered
How to numerically solve first order differential equation with dependent variables?
You didn't declared variables inside each function Do this like this function Vel=fvel(t) V0 = 5; ts = 0.3; Vel = V0*(1-t...

6 years ago | 0

Answered
3D Phase portrait for a set of differential equations
I tried to plot T A and I separately. X Y Z axis represents T A and I respectively. Color represents derivative of T A or I I u...

6 years ago | 0

| accepted

Answered
How to detect a specific area on image
binarize image remove small object like numers (bwareaopen) use find to get indices of corners you want

6 years ago | 0

Answered
Time varying force with ode23
Use function handle Ft = @(t) (t<=tf)*Fo*sin(2*pi*t/tf); dXdt = @(t, x) [x(2); Ft(t) * 1/(m1+m2)]...

6 years ago | 0

| accepted

Answered
Color normalization algorithm under various lighting conditions
Try this trick I = imread('peppers.png'); imshow(I) p = round(ginput(1)); for i = 1:3 I(:,:,i) = I(:,:,i) + (255 - I(p(...

6 years ago | 1

Answered
FIND A SPECIFIC ELEMENT WITHIN A LIST OF GENE SYMBOLS
Try this A = readtable('data.txt','delimiter','\t') GENE = table2array(A(:,2)); % convert to cell ix = strfind(GENE, ...

6 years ago | 0

Answered
Projectile motion hold function not working
Try this modification

6 years ago | 0

| accepted

Answered
Newton's solver not converging for 1D nonlinear diffusion equation.
See this madness lam = 0.1; m = 100; n = 20; t = linspace(0,0.1,m); x = linspace(0,1,n); dt = t(2)-t(1); dx = x(2)-x(1); ...

6 years ago | 0

Answered
I don't see the changes using xlim with patches by drawing a surface
see my recommendations

6 years ago | 0

| accepted

Answered
take largest connected components in 2D slices and then reconstruct the 3D by stacking them
erode image dilate image clc % clear command window cla % clear axes bi11 = ...

6 years ago | 1

| accepted

Answered
How to solve an equation multiple times with any combination of data points, given a data set?
Here is a simple start for i = 1:10-1 a = []; for j = i+1:10 a = [a j]; end a end Run this scrip...

6 years ago | 0

Answered
Ode45 data keeps refreshing
Try persistent function udot = ok3(t,u,P,m,maxu,maxT,umax) syms z p(z) T=symsum(p(m+1-z)*(u(1))^z,z,0,m); persistent umaxc...

6 years ago | 0

Load more