Réponse apportée
Integrating a function including mvnpdf. Error: Input function must return 'double' or 'single' values. Found 'sym'.
Yes, that is the reason. Maybe you have made sigma or mu symbolic variables?

plus de 6 ans il y a | 0

Réponse apportée
Plotting two functions with ranges in one plot
You could also edit away the data points you don't want h=plot(x, M1, x, M2); ylim([-120,20]); h(1).XData(6:7)=[]; h(...

plus de 6 ans il y a | 0

Réponse apportée
Using relative tolerance with fmincon
Can you please update the document that stated that tolerances are absolute (it was posted by MATLAB staff)? No, we cannot. On...

plus de 6 ans il y a | 0

Réponse apportée
Confusion matrix not being clearly visible for larger output classes
See the ConfusionMatrixChart Properties.

plus de 6 ans il y a | 0

Réponse apportée
Why do I keep getting the error message array indices must be positive integers or logical values?
Why do I keep getting the error message array indices must be positive integers Because the h in X(h) is non-integer and the 0 ...

plus de 6 ans il y a | 0

Réponse apportée
optimization problem with two variable maxima and minima
fun=@(x) [2*x(1)^2+23.08*x(2)^2+4*(6+x(1))^2+24+14*(x(1)^2 +x(2)^2)^0.5+3*(x(1)^2+x(2)^2)-Y;... prod(x)-1]; x=fsol...

plus de 6 ans il y a | 0

Réponse apportée
matrix multiplication for "3-D" matrices
If you have the parallel computing toolbox, you can do this on the GPU with pagefun(@mtimes,A,B) but this may only provide gai...

plus de 6 ans il y a | 0

Réponse apportée
how to have function with scalar value
"I have a code and 2 objective functions" If you really do want to treat this as a multi-objective problem, you should probably...

plus de 6 ans il y a | 0

Réponse apportée
Build new matrix from look up table
C=CD( interp1(B,1:numel(B),A,'nearest') );

plus de 6 ans il y a | 1

| A accepté

Réponse apportée
how to calculate area, perimeter and circularity of objects in an image using regionprops
Notice - >> a=1; %not displayed >> b=2, %displayed b = 2

plus de 6 ans il y a | 0

Réponse apportée
calculate std and mean for multiple variables automated
Observe - >> input=rand(10,5) input = 0.8147 0.1576 0.6557 0.7060 0.4387 0.9058 0.9706 0.0357...

plus de 6 ans il y a | 1

Réponse apportée
Accessing table variables in a class method
Here is an example to demonstrate that accessing tables by variable name works fine with value classes. Subclassing from 'handle...

plus de 6 ans il y a | 1

| A accepté

Réponse apportée
How to curve fit an equation with sigma function
C = polyfit( sqrt( x.^2+y.^2) , Z, N)

plus de 6 ans il y a | 1

Réponse apportée
How can i determine the area in percentage of a clustered image?
Divide the membership of each cluster by the total number of pixels.

plus de 6 ans il y a | 0

Réponse apportée
Dimension of arrays being concatenated are not consistent.
Some things you urgently need to learn: https://www.mathworks.com/help/matlab/ref/dbstop.html https://www.mathworks.com/help/m...

plus de 6 ans il y a | 1

Réponse apportée
Plotting points in style [x1,y1] , [x2,y2], [x3,y3] and them plot all of them?
No, but you can certainly write your own wrapper for any of the plotting functions to give you the input syntax that you want.

plus de 6 ans il y a | 0

Réponse apportée
Index exceeds array bounds
The only solution: https://www.mathworks.com/help/matlab/matlab_prog/debugging-process-and-features.html#responsive_offcanvas

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
hi every one, i need to ask a question, thank you
A=double(A); A(logical(A))=B;

plus de 6 ans il y a | 0

Question


Can symbolic vectors (not vectors of symbols) be defined and manipulated in the Symbolic Math Toolbox?
I would like to define symbolic functions that are functions of vector-valued quantities, like syms A x f(x)=x.'*A*x where A ...

plus de 6 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
Why does skeletonization sometimes reduce horizontal rectangles to single pixels?
Remember what bwskel is doing. It is peeling the outer pixels of the rectangles like an onion over and over again until it reach...

presque 7 ans il y a | 0

Réponse apportée
Translation for an ellipsoid ?
Is there anyway to do this such that later on I need the coordinates of the rotated followed by translated ellipsoid. You can d...

presque 7 ans il y a | 0

Question


Nested Functions versus Global Variables
Why are nested functions better for sharing variables between workspaces than global variables? There doesn't seem to be much di...

presque 7 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
scatteredInterpolant in nonlinear system
In the first global declaration, etac is missing from the list. global Hm pe1 pe2 pe3 etae2 etae3 qmax1 qmax2 qmax3 %<--- add...

presque 7 ans il y a | 0

Réponse apportée
Why does fplot think my function is not vectorized
Here's a workaround to trick fplot into doing the right thing.

presque 7 ans il y a | 1

Réponse apportée
Correspondence between intrinsic axes and world axes for imref objects
Or is it j,i, and k like with meshgrid? It is this one, sad to say. You can check it like this M=50; N=40; P=30; ir = imref...

presque 7 ans il y a | 0

| A accepté

Réponse apportée
put number in cell
B=~cellfun('isempty',A)*0.2

presque 7 ans il y a | 0

Réponse apportée
How to read images with positive integer? No imead()
I definitely don't get all zeros with imread. Problem solved? >> nnz(imread('C0039_100122_INDS.png')) ans = 4624 ...

presque 7 ans il y a | 0

| A accepté

Réponse apportée
FFT, IFFT and phase shifting
Is this what you want Xf=fftshift(fft(y)); f=fs.*((0:N-1) -ceil((N-1)/2))/N; subplot(2,1,2) stem(f,abs(Xf)/length(y)); ti...

presque 7 ans il y a | 0

| A accepté

Réponse apportée
Branching points problem in binary image
[I,J]= find( bwmorph(BW,'branchpoints') );

presque 7 ans il y a | 0

| A accepté

Réponse apportée
How do I replace missing data with other values?
isnan is the correct way to detect and replace nans. Rn=radi; Rn(isnan(radi))= ---- something else ----

presque 7 ans il y a | 0

| A accepté

Charger plus