Beantwortet
Formatting Data in dlarray for Deep Learning Models
You cannot do that, but you shouldn't need to. Because the dimensions are all identified by labels (in this case CBT), trainnet(...

fast 2 Jahre vor | 0

Beantwortet
Assigning many cell array entries to same value using index
You should probably be using strings or catgorical arrays instead of cells. Regardless, it is easy to switch back and forth: ce...

fast 2 Jahre vor | 1

Beantwortet
Assigning many cell array entries to same value using index
Another way, [cellArray{iHigh}] = deal('High'); [cellArray{iLow}] = deal('Low');

fast 2 Jahre vor | 1

Beantwortet
Single struct as alternative to name-value pairs in user-defined function
You would have to use the older inputParser system to do that kind of thing, with the StructExpand property set to true (the def...

fast 2 Jahre vor | 1

| akzeptiert

Beantwortet
imregcorr() misaligns images badly
Phase correlation isn't going to be a good algorithm for images of a starry field. I think your best bet is to do landmark extra...

fast 2 Jahre vor | 1

| akzeptiert

Beantwortet
Merging different legend labels
One way, x1 = [1, 2 ,3, 4, 5]; y1 = [5, 3, 2.8, 1.7, 1.2]; y2 = [6.5, 4.7, 3.5, 1.9, 1.3]; x2 = [1, 2, 3, 4, 5]; y3 = [6, 5...

fast 2 Jahre vor | 0

Beantwortet
Trouble with inheritance i MATLAB OOP
Remove these property declarations from PathParameterFile, properties Path; xmlStruct; ...

fast 2 Jahre vor | 0

| akzeptiert

Beantwortet
I have been working on 3D imaging in the form of pixels with spheres in a box and need help in finding out the contact points in between the spheres in the produced pixel data
This assumes SS contains the edge map of the two spheres and nothing else. L=bwlabel( imfill(SS~=0,'holes') ); se=ones(3); ...

fast 2 Jahre vor | 0

Beantwortet
The extrinsic function 'perms' is not available for standalone code generation.
Here's an alternative implementation of perms(), suitable for small vectors. Maybe pre-2024b Coder will find it more pallatable....

fast 2 Jahre vor | 0

Beantwortet
what type of deep learning network?
It is a feedforward neural network.

fast 2 Jahre vor | 0

Beantwortet
Enforce condition in lsqnoneg
Suppose your original problem is, Rewrite the problem by making the change of variables x=Q*z where z>=0 and Q=eye(160...

fast 2 Jahre vor | 0

| akzeptiert

Beantwortet
What are the packages I need to select while installing MATALB for suceessfully installing MATLAB runtime.
This might help: https://www.mathworks.com/products/compiler/matlab-runtime.html

fast 2 Jahre vor | 0

Beantwortet
Formatting Data in dlarray for Machine Learning Input
XTrain(1:10)={rand(3,540)}; %hypothetical data XTrain=dlarray( cat(3, XTrain{:}) ,'CTB')

fast 2 Jahre vor | 0

| akzeptiert

Beantwortet
Using dlarray with betarnd/randg
Random number generation operations do not have derivatives in the standard sense. You will have to define some approximate deri...

fast 2 Jahre vor | 1

| akzeptiert

Beantwortet
Degrade image with known MTF to another desired MTF
sfrmat3 is 3rd party code, so nobody here knows what it is doing. I suspect at least part of the problem is that img_blurred is ...

fast 2 Jahre vor | 0

| akzeptiert

Beantwortet
Update a value in a struct in another function
You must return the modified myStruct from myUpdate(): myStruct.myLength = 1 myStruct = myUpdate(myStruct) function myStr...

fast 2 Jahre vor | 0

Beantwortet
Deep learning numerical regression, no images, custom loss function
I don't know what kind of hidden layer architecture you would want for such an application, but the network below (layer graph a...

fast 2 Jahre vor | 0

Beantwortet
Why are the components of the two eigenvectors not continuous and smooth, when the underlying data is continuous and smooth?
Note that eigenvectors are not generally continuous functions of the matrix entries, as shown in this old example from J.W. Give...

fast 2 Jahre vor | 1

| akzeptiert

Beantwortet
How to speed up my code (computing jacobian)
You can use equationsToMatrix to obtain the Jacobian. Depending on what you are doing, you might then convert the matrix to doub...

fast 2 Jahre vor | 0

| akzeptiert

Beantwortet
How to distinguish pressing cancel vs entering an empty string in inputdlg?
However, this does not distinguish between meaningfully enterring an empty string and pressing cancel/x. It should. Hitting ok...

fast 2 Jahre vor | 0

| akzeptiert

Beantwortet
fminunc limit step size
No, there is no way to limit the stepsize, but you shouldn't be using a random initial point. That is never a good idea.

fast 2 Jahre vor | 0

| akzeptiert

Beantwortet
How do I remove outliers in data so that vectors are of the same length for plotting?
Perhaps something like this, [Y,discard]=rmoutliers(Y); X(discard)=[];

fast 2 Jahre vor | 1

| akzeptiert

Beantwortet
inv(A)*B*inv(A) or A\B/A, which is more accurate for a full rank A and half rank B
I tried both inv(A)*B*inv(A) or A\B/A, resulting in very different results for a gradient descent algorithm. From this, it woul...

fast 2 Jahre vor | 0

Beantwortet
Accessing data from same variables within different tables in a structural array
fcn=@(p) interp1( p.data.TimeCooling , p .data.TempCore, timepoints(:)); TempCore_Lookups= cell2mat(arrayfun(fcn,p,'un...

fast 2 Jahre vor | 0

| akzeptiert

Beantwortet
One function is greater than other
Let us reorganize the inequality as, Since log(z)>0 in the given domain of z, this implies which in turn implies that...

fast 2 Jahre vor | 0

| akzeptiert

Beantwortet
Finding accurate inverse of binary circulant matrix
We don't know what it is that you consider improper about the results of inv(). The test below indicates to me that everything i...

fast 2 Jahre vor | 0

Beantwortet
Proving one function is greater than other?
Make the change of variables and rearrange the inequality as, Since is a convex function on such that >0 and , it read...

fast 2 Jahre vor | 0

| akzeptiert

Beantwortet
Function to trainNetwork returns an unexpected error
Your X_train and y_train data were in some weird format that trainNetwork cannot recognize. Try this instead, Xdata = num2cell(...

fast 2 Jahre vor | 0

| akzeptiert

Beantwortet
orthogonal projection of 3D nodes onto a 2D plane
You should post questions about a FEX file on the submission's FEX Discussion forum, since only its author is likely to have the...

fast 2 Jahre vor | 0

| akzeptiert

Beantwortet
Surf on a cylinder
% Step 1: Create the heatmap data % Example heatmap data heatmapData = peaks(50); % Replace this with your actual heatmap dat...

fast 2 Jahre vor | 1

| akzeptiert

Mehr laden