Beantwortet
How to calculate the arterial wall thickness on an image?
You should have some scale parameters Here is idea: human = 45 * 3/100 = 1.35 [m]

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
Generate a random orthonormal vector (i) to a given unit vector and (ii) with n-2 predetermined components
What about fsolve b = 1; c = 1; v1 = [-0.52 0.72 -0.19 0.37 -0.18]; v2 = @(x)[x b c 0.45 -0.09]; F = @(x) dot(v1,v2(x)); r...

etwa 6 Jahre vor | 1

| akzeptiert

Beantwortet
Pass out a dependent variable from ode15s without taking the derivative of it
You should calculate rr variable after solving ode45 An example function main [t,u] = ode45(@f,[0.1 3],[1 1]); u1 = u(:,1); ...

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
PLOT IS NOT SHOWING ANYTHING
Use subplot to draw curvees in separate windows subplot(2,1,1) plot(T,Y(:,1),'r') subplot(2,1,2)] plot(T,Y(:,2),'r')

etwa 6 Jahre vor | 1

| akzeptiert

Beantwortet
fsolve stopped because the problem appears regular
Try this [X,Y] = meshgrid((-6:0)*1e34, (-10:10)*1e34); Z1 = X*0; Z2 = X*0; for i = 1:size(X,1) for j = 1:size(X,2) ...

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
Move STL object in matlab
Example: the code for selecting pink object fv = stlread(fileName); % extract data v = fv.vertices; ...

etwa 6 Jahre vor | 0

Beantwortet
3D effect on bar diagram
YOu can manually plot boxes [X,Y] = meshgrid([0 0 1 1 0]-1/2,[0 0 1 1]-1/2); Z = zeros(size(X)); Z([6 7 10 11]) = 1; surf(...

etwa 6 Jahre vor | 1

Beantwortet
how to find the length and width of connected components
Use regionprops If you used bwlabel, can't you just separate? [L,n] = bwlabel(image); data = regionprops(L,'area'); area = c...

etwa 6 Jahre vor | 0

Beantwortet
Looping data acqusition process for 100 cycles
Simple example of for loop work for i = 1:5 i end

etwa 6 Jahre vor | 1

| akzeptiert

Beantwortet
Filling Rand matrix with specific numbers
Use for loops matrix0=rand(1500,1000); val = [1:-0.25:0]; for i = 1:5 ii = (i-1)*300+1 : i*300; matrix0(ii,:) = val...

etwa 6 Jahre vor | 1

| akzeptiert

Beantwortet
loop for a series of changing variable or tables
My solution A1 = table(1,2); A2 = table(1,2); A = {A1 A2}; for i = 1:2 AA = A{i}; new_var(i,1) = AA(5,1); end

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
Setting nonlcon for fmincon / patternsearch as a matlabfunction
If understood you correctly: you have symbolic expression and wants to convert it to matlab function: syms a b c f = b - a - c...

etwa 6 Jahre vor | 1

Beantwortet
Tracing an arc on circumfrence of quarter circle
Solution: I used fsolve to find: RedArea - BlueArea = 0 See script

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
Solving odes (restricted 3 body problems)
Variables rE and rM should be in the function

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
creating multiple circles inside an array
Try imdilate I0 = false(1000); % create logical matrix ind = randperm(1000^2,7); % random position to pl...

etwa 6 Jahre vor | 0

Beantwortet
How can I use a 'While Loop' to verify user input where it restricts specific inputs?
Correct way to use logical operators iin your case

etwa 6 Jahre vor | 0

Beantwortet
how can I plot phase portait of differential equations?
Use meshgrid to create a mesh Use diff to find u and v Use quiver to create vectors Use streamline to create phase portrait ...

etwa 6 Jahre vor | 0

Beantwortet
How to convert a spring plotted in plot3 into a mesh
What about torus? You can modify Z coordinate

etwa 6 Jahre vor | 1

| akzeptiert

Beantwortet
How can i find out if two minutiae points in a fingerprint image are on the same ridge line?
Simple example I0 = imread('image.jpg'); I1 = ~im2bw(I0); I2 = bwmorph(I1,'thin',inf); I3 = bwareaopen(I2,30); % rem...

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
Displaying information about the data set by clicking on its plot not working when I run the program more than once
This is a bad idea to find appropriate data better use pdist2 D = pdist(pos(:)',[xdata(:) ydata(:)]); [~,j] = min(D);

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
How to find the optical flow of the corner point of a red box in a video?
What about find()? [y,x] = find(redMask,1,'first')

etwa 6 Jahre vor | 0

Beantwortet
Solve an ode using ode45
SOlution

etwa 6 Jahre vor | 1

Beantwortet
Solution for a Subplot in loop reading from multiple columns with an increment and from different excel sheets
You don't use for loop index. Use it

etwa 6 Jahre vor | 1

| akzeptiert

Beantwortet
How to locate and exclude values that are above a certain value and next to each other.
Using bwmorph x=[1 2 3 5 3 4 5 6 9 12 15 13 11 9 5 1 2 3 4 2]; x1 = abs(diff(x)); ix = bwmorph(x1>=2,'clean'); % r...

etwa 6 Jahre vor | 0

Beantwortet
plotting Matrix vs Scalar
Try this x = [0.1584 0.1086 0.0076 0.0070]; y = -441.67; plot(x,x*0+y)

etwa 6 Jahre vor | 1

| akzeptiert

Beantwortet
Get intersection of two segments
Here is a script It solves line-line intersection (x1,y1) - line1, (x2,y2) - line2 a1 = (y1(i+1)-y1(i)) / (x1(i+1) - x1(i)); ...

etwa 6 Jahre vor | 1

Beantwortet
Hiding line visibility with state button
Try this function mycustomstatebutton fig=figure; % ax=uiaxes('Parent',fig,'position',[104 123 300 201]); T=[1 2 3 4 5 6 7 8...

etwa 6 Jahre vor | 1

Beantwortet
X axis tick labels changes.
Here they are

etwa 6 Jahre vor | 1

| akzeptiert

Mehr laden