Beantwortet
Construct voronoi diagram on a point cloud
Using the attached file and this FEX download https://www.mathworks.com/matlabcentral/fileexchange/30892-analyze-n-dimensional...

etwa ein Monat vor | 0

Beantwortet
How to generate orthogonal X-ray Projection, Digitally Reconstructed Radiographs (DRR), from a particular CT volume
This is a popular Matlab compatible library, https://github.com/CERN/TIGRE/blob/master/Frontispiece/MATLAB_installation.md It...

etwa ein Monat vor | 0

| akzeptiert

Beantwortet
How to move a 3D volume in 6D (3 Translations and 3 Rotations)
I defined a function called "applyRigidTransform3D" in code 1 and "rigidTransform6D" in code 2 for the 6D movements It shouldn'...

etwa ein Monat vor | 0

| akzeptiert

Beantwortet
The surface I'm plotting comes out jagged and "saw teeth" like
It's a very coarsely sampled surface. There's not really any more to it. You can bicubicly upsample the data if you want a smoot...

etwa ein Monat vor | 0

| akzeptiert

Beantwortet
How to draw line in viewer3d ?
You could use images.ui.graphics.Surface to create a very thin cylinder, could you not?

etwa ein Monat vor | 0

| akzeptiert

Beantwortet
Inverse problem, Overdetermined, Nonlinear
You would use fsolve or, if you want specific constraints on the unknowns, e.g., bounds, you would use lsqnonlin. You could al...

etwa ein Monat vor | 0

Beantwortet
2D-3D image registration - COMPLETE 6D ESTIMATION
I haven't read the paper, but I don't see how the proposed method would ever work as you describe it. 6D motion simply does not ...

etwa ein Monat vor | 0

Beantwortet
Fitting to exp plus a constant
It looks like the fit was successful, but the model function is overparametrized, so there is no specific value for a (or c) tha...

etwa ein Monat vor | 0

Beantwortet
Showing the value on the x-axis as a legend the moment the curve deviates from the x-axis
Something like this, perhaps: Hlines=plot(1:5, max(0,-2:2), 1:5, max(0,-1:3)); axis padded h=arrayfun(@addIt,Hlines); leg=l...

etwa ein Monat vor | 0

Beantwortet
camera intrinsics calibration produces wild out-of-range principalPoint
You haven't provided data with which to repeat the calibration, so one can only guess. But if reconstruction error is low, the p...

etwa ein Monat vor | 0

Beantwortet
How can you save a 1 by 3 array in each position of a 4D array?
I would like to only have one 4D array, with each coordinate housing a 1x3 with all 3 data points needed. Is this possible? You...

etwa ein Monat vor | 1

| akzeptiert

Beantwortet
How to fit a set of data where one of the fitting parameters decays exponentially?
Why not just replace Γ_cav in your model equation by a parametrized exponential, e.g., Γ_cav=a*exp(b*x) where a and b are ne...

etwa ein Monat vor | 0

Beantwortet
Is image normalization performed when using "trainnet" for semantic segmentation training?
If your network has an imageInputLayer with the Normalization parameter set to do so, https://www.mathworks.com/help/deeplearni...

etwa 2 Monate vor | 0

Beantwortet
The calibrator app says the patterns are "too similar" even if they are not
Your cam2 images are of poor quality. Corner detection done in isolation fails pretty badly for some of them (see below). Did yo...

etwa 2 Monate vor | 0

Beantwortet
Plots have small titles
I also think that it is small in the figure viewer. I haven't noticed any changes in the figure viewer. However, you can set th...

etwa 2 Monate vor | 0

| akzeptiert

Beantwortet
the dimension of matrix when using 'sparse' to generate sparse matrix
With a slight reimplementation of tril3d, the test code seems to work: % test spblkdiag tril ndSparse z1=rand(8,8,20); z2=t...

etwa 2 Monate vor | 0

Beantwortet
How to get legend entries from existing figure ?
The legend's String property will get you the legend labels for the different lines, e.g., plot(rand(5,3)); L=legend; L.Stri...

etwa 2 Monate vor | 0

| akzeptiert

Beantwortet
App Designer component generated by code not displaying
It is conspicuous to me that you are complaining about missing labels, but not about the missing uipanel!. Did you pre-populate ...

etwa 2 Monate vor | 0

| akzeptiert

Beantwortet
What is causing this intermittent error in parfor?
If you add the indicated line, your class constructor will support no-argument calls, and the error will go away: funct...

etwa 2 Monate vor | 0

| akzeptiert

Beantwortet
Defining inequality constraint A*x <= b for genetic algorithm
You should be able to vectorize the computations in your self-intersection checker (within your nonlinear constraint function). ...

etwa 2 Monate vor | 0

Frage


Why does fprintf attach a negative sign to a zero?
Here is some code to set up the demonstration, load data fid = fopen('runsim.py','w'); rotation=[0,0,-GantryAngles(1)]; ...

etwa 2 Monate vor | 3 Antworten | 0

3

Antworten

Frage


Closing the Property Inspector in R2025b
The Property Inspector pane does not appear to have a 'Close' button in R2025b, nor does its sidebar icon appear to have a dropd...

etwa 2 Monate vor | 1 Antwort | 0

1

Antwort

Beantwortet
confidence interval from lsqnonlin function while retaining constraints
After solving the original problem, initialguess = [3,25.5013,0.5,-0.8793]; %[n,tau(fs),m,c] options = optimoptions('lsqnonlin...

etwa 2 Monate vor | 0

Frage


Pinning the AxesToolbar (revisited)
The AxesToolbar was introduced about 6 years ago, However, I never embraced it, because it wa...

etwa 2 Monate vor | 1 Antwort | 3

1

Antwort

Beantwortet
How can I move the find & replace window or get it to automatically close
If you widen the Editor window sufficiently, the Find and Replace window will move to the right into a blank area where it will ...

2 Monate vor | 0

| akzeptiert

Frage


Mixing subscripts with linear indices
Generally speaking, I have found that it has always been possible to mix subscript and linear array indexing, as long as the ind...

2 Monate vor | 1 Antwort | 1

1

Antwort

Beantwortet
effects of ifft2(x, 'symmetric') while x is not conjugate symmetric
When you specify "symmetric", the upper half of the fft input array is ignored, e.g. x=ones(1,7); ifft(x) x(5:end)=rand(1...

2 Monate vor | 1

| akzeptiert

Beantwortet
The single function is not behaving as expected
No, it is not a bug. The precision of a number isn't something that is measured only by the digits to the right of the decimal p...

2 Monate vor | 3

| akzeptiert

Beantwortet
Integer conversion without precision loss for literal function inputs
test 7725400999518902274 function test(a) arguments a (1,:) string end a=eval("uint64("+ a + ")"), end

2 Monate vor | 1

| akzeptiert

Beantwortet
FFT problem: FFT -> some manipulation -> IFFT results in one-element shift
I think the line where I define my frequency: f= ((-length(fourierNoise)/2):((length(fourierNoise)/2)-1))*fs/length(fourierNois...

2 Monate vor | 0

Mehr laden