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

etwa 6 Jahre vor | 0

| akzeptiert

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

etwa 6 Jahre vor | 1

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

etwa 6 Jahre vor | 0

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

etwa 6 Jahre vor | 0

| akzeptiert

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

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
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

etwa 6 Jahre vor | 0

| akzeptiert

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

etwa 6 Jahre vor | 0

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

etwa 6 Jahre vor | 1

| akzeptiert

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

etwa 6 Jahre vor | 0

| akzeptiert

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

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
I am having problem with segmentation. I have to create an image without beads in fibers from a fiber with beads. Can, anyone please help me? Or provide me a code to do the segmentation. I am new on image segmentation?
Here is the best way to solve your problem I = imread('image.png'); % read image I1 = im2bw(I,graythresh(I)+0.1); ...

etwa 6 Jahre vor | 0

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

etwa 6 Jahre vor | 0

| akzeptiert

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

etwa 6 Jahre vor | 1

| akzeptiert

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

etwa 6 Jahre vor | 1

| akzeptiert

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

etwa 6 Jahre vor | 0

| akzeptiert

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

etwa 6 Jahre vor | 0

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

etwa 6 Jahre vor | 0

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

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
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

etwa 6 Jahre vor | 0

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

etwa 6 Jahre vor | 0

| akzeptiert

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

etwa 6 Jahre vor | 1

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

etwa 6 Jahre vor | 0

Beantwortet
Projectile motion hold function not working
Try this modification

etwa 6 Jahre vor | 0

| akzeptiert

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

etwa 6 Jahre vor | 0

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

etwa 6 Jahre vor | 0

| akzeptiert

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

etwa 6 Jahre vor | 1

| akzeptiert

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

etwa 6 Jahre vor | 0

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

etwa 6 Jahre vor | 0

Mehr laden