回答済み
Can I recover only the diagonal elements of A' * B with SVD vectors of A and B?
i-th diagonal of A'*B equals dot product of the i-th columns of A and B. Here is a demo showing how to recover only the diagonal...

約6年 前 | 0

回答済み
How to have automated thresholding to deal with disparities between images
Here is a demo that uses automatic multi-level thresholding to isolate the disks: im_files={'https://www.mathworks.com/matl...

約6年 前 | 1

| 採用済み

回答済み
Fit to the experimental plot
Use <https://www.mathworks.com/help/curvefit/fit.html 'fit'> function

約6年 前 | 0

回答済み
ray tracing, indices and path length registration
For 2D reconstruction, the problem can be approached follows: 1) Let's say you have a set of K rays {Rk}, where Rk is k-th r...

約6年 前 | 0

| 採用済み

回答済み
Chan Vese Segmentation mask is not working Properly
Your image appears to be "padded" on the top and bottom with gray values. The transition between the black background (containin...

約6年 前 | 0

| 採用済み

回答済み
How to calculate trace(A' * B) using SVD vectors of A and B?
I am not aware of any identities that can express trace(A'*B) in terms of SVDs of A and B, and I dont think one exists, but ther...

約6年 前 | 2

| 採用済み

回答済み
How to evaluate the angle from an image?
Try this: spray_angle_demo Output: Spray angle: 45.98 degrees <</matlabcentral/answers/uploaded_files/122840/spr...

約6年 前 | 0

| 採用済み

回答済み
Does the pca function restrict the number of components to be kept?
The eigenvectors computed by PCA (and its generalized version called probabilistic PCA) only span the subspace of the ambient sp...

約6年 前 | 3

| 採用済み

回答済み
T-Test with covariates?
In medical image processing application <https://en.wikipedia.org/wiki/General_linear_model general linear model> is often used ...

約6年 前 | 0

回答済み
How to calculate the moment of inertia of a convex hull?
Here is a link to a function on FEX that computes inertia tensors of objects represented by triangular surface meshes: https://w...

約6年 前 | 1

| 採用済み

回答済み
Isolating specific dots in an image.
im=imread('https://www.mathworks.com/matlabcentral/answers/uploaded_files/122320/2steps%20from%20perfection.PNG'); im=max(i...

約6年 前 | 2

| 採用済み

回答済み
How to measure the curvature of object boundary?
Thanks for the clarification. If I understand correctly, the features you seek should be extracted from an open-curve that repre...

約6年 前 | 0

| 採用済み

回答済み
How can I transform a coordinates data into another 3-D space?
Code below demonstrates how to obtain rotation matrices between corresponding 3-tupples of non-collinear points in 3-space: ...

約6年 前 | 0

回答済み
3D Coordinates Line of Fit
Hey, David. Here is a demo you may find useful: <</matlabcentral/answers/uploaded_files/122157/best_fit_demo.jpg>> funct...

約6年 前 | 3

| 採用済み

回答済み
re. finding perimeter of a 2D shape
% Contour coordinates A=xlsread('Profgraph.xls','sheet2'); % Compute perimeter N=size(A,1); D=A(:,2:N)-A(:,1:(...

約6年 前 | 0

| 採用済み

回答済み
Fill area with random circles having different diameters
Hopefully this iteration of code (see below) is the last one. % Unconstrained circle packing example. Only centroids constr...

約6年 前 | 2

| 採用済み

回答済み
Fill area with random circles having different diameters
Here is another implementation of random circle packing. This version produces much tighter packing than my previous demo thanks...

約6年 前 | 0

回答済み
Reparameterize 3D points with respect to PCA vector
Here is a quick demo: <</matlabcentral/answers/uploaded_files/121201/pca_normalization.jpg>> function pca_point_cloud_de...

約6年 前 | 3

| 採用済み

回答済み
Custom Image Spatial Filtering Code using loops not giving the same result as using the built in imtransform() function
Actually, both your 'convolution' function and built-in 'imfilter' function produce very similar results. The discrepancy you we...

約6年 前 | 1

| 採用済み

回答済み
Write a script to calculate the sum of even numbers from between 1 to 1000
Here is the script sum(2:2:1000)

約6年 前 | 2

回答済み
Soften hard constraints in MPC formulated as a QP-problem
You could try using 'fmincon' instead of 'quadprog', which would allow you to incorporate non-linear constraints on your state v...

約6年 前 | 0

回答済み
how can i plot multiple circles in a plot
After you finished plotting, use command axis equal to make aspect ratios of vertical and horizontal axes equal to one ...

約6年 前 | 1

回答済み
Fill area with random circles having different diameters
Here is a demo that uses rejection sampling and Delaunay triangulation <</matlabcentral/answers/uploaded_files/121175/circle_...

約6年 前 | 1

回答済み
Plotting discretized field in 2D
Here is an example: x_lim=[0 20]; x=linspace(x_lim(1),x_lim(2),11); [X,Y]=meshgrid(x); F=randn(size(X)).*X-ran...

約6年 前 | 1

| 採用済み

回答済み
How to solve transcendental equations in matlab
This is a complex-valued function. Just from visual inspection, it is apparent that the real part of this function has infinitel...

約6年 前 | 0

| 採用済み

回答済み
legend children empty, but need to set transparency
I had the same problem. I couldn't figure out a way to resolve it in Matlab, so instead I exported the graph as it was and then ...

約6年 前 | 0

回答済み
Integration of discrete data which have a non-linear relationship
Numerical integration based on Simpson's rule provides greater accuracy than integration using trapezoidal rule. Here is an impl...

約6年 前 | 0

| 採用済み

回答済み
Contour plot with 3 variables
% Grid y=70:160; x=0:60; z=10:80; [X,Y,Z]=meshgrid(x,y,z); % Evaluate function at grid points F=-1.69*X ...

約6年 前 | 0

回答済み
Complex numbers input in neural networks
You can represent a complex number, a+i*b, as a 2-vector [a b], so use that format instead. Suppose that F is an array of comple...

約6年 前 | 1

| 採用済み

回答済み
How can I place spheres along a circle/ring ?
See example below. All relevant functions used to generate this example can be found <https://drive.google.com/open?id=11Rc5WKrq...

約6年 前 | 1

| 採用済み

さらに読み込む