Answered
I am not getting the correct value for rblush in this code. here, red is a matrix consisting of only the r of rcb values of an image. If the value of red_pixel is greater than 200, i want to add the pixel values in rblush but im getting the wrong val
Since “red” is your red-channel image, you can directly find the pixel values that are greater than 200 and “rmean” in the follo...

3 månader ago | 0

Answered
L1 and L2 Regularization for matlab
You can set the L2 regularization for selected layers using the setl2factor function. You can refer to the following link for ...

3 månader ago | 0

Answered
External C++ library support for Simulink Realtime
The error is because the C++ standard template library is not compatible with real-time code. A similar question has been answe...

5 månader ago | 0

Answered
How can I launch a FreeFem++ (.edp) file from MATLAB 2018b?
In the ButtonPushed callback function, you can add the following line for executing a .edp file system(['FreeFem++ ' path_to_fi...

5 månader ago | 0

| accepted

Answered
4D Plot using Columns of Matrix
figure, scatter3(X, Y, Z, 50, F, 'filled'); The scatter3 function can be used, where each point in F is plotted with a differen...

5 månader ago | 0

Answered
'Error in default port dimensions function of S-function', 'This function does not fully set the dimensions of output port 2'
In line 50 of your ManoeuvringCode.m, the variable X_u is defined as an expression which is present in your excel sheet in row 4...

5 månader ago | 0

Answered
What is an optimum value for Java Heap Memory?
There is no optimal value for Java heap space, as the best allocation depends on what you are doing. The default heap size is su...

5 månader ago | 0

| accepted

Answered
Creating a Simbolic vector and setting assumptions on it
You can declare assumptions on symbolic variables using the assume function from the Symbolic Math Toolbox. For more information...

5 månader ago | 0

Answered
How to add images continuously to a imageDatastore
Since the ‘Files’ and ‘Labels ‘ properties of the imageDatastore function return cell array of character vectors, you can direct...

5 månader ago | 0

| accepted

Answered
How to process video in parallel?
One possible approach is by using spmd. You could define spmd in such a way that each worker will operate on a chunk of the inpu...

5 månader ago | 1

| accepted

Answered
Perform 3-D U-Net Deep Learning with non-cubic input
The input size might not be the problem, as you were able to train the network without any errors. In case of medical imaging,...

6 månader ago | 0

Answered
Slow checkLayer-function for simple custom reshape layer
While using the checkLayer function, for large input sizes, the gradient checks take longer time to run. To speed up the tests, ...

6 månader ago | 0

Answered
Data Partition using CVPartition_ Warning
c = cvpartition(n,'KFold',k) The above syntax of the function randomly splits the “n” observations into “k” disjoint sets of ro...

6 månader ago | 0

| accepted

Answered
Finding Frame Count for DICOM File
You can use the function dicomCollection to get the number of frames. For more information on how to use this function, refer t...

6 månader ago | 1

| accepted

Answered
Time Series and input layer Error
From the error you received, I can see that your input data is of size 5353. But, from line 3 of your code, you are defining t...

6 månader ago | 0

| accepted

Answered
Error in the Matlab documentation for surrogateopt
Hi, I have brought this issue to the notice of our developers. They will investigate the matter further.

6 månader ago | 0

Answered
How to crop an image inside a boundary ?
region=uint8(roipoly(img,position(:,1),position(:,2))); After getting the mask of the selected region from the above line in yo...

6 månader ago | 0

| accepted

Answered
Deep Learning Memory issues for BiLstm mat files
Hi, You could use the Custom Mini-batch Datastore which uses the function sequenceDatastore that reads data from the specified...

6 månader ago | 0

Answered
How do i use sequentialfs in matlab when using neural networks (patternnet) as a model?
Hi, classf = @(xtrain,ytrain,xtest,ytest) sum(classify(ytest,xtest,train(ytrain,xtrain)) ~= ytest); In the above declaratio...

6 månader ago | 0

Answered
semantic segmentation of 4D MRI using 3D-UNet
Hi, Since you defined the Input Layer size as [64 64 64 4], it is expecting the input you provide to be of size [64 64 64]. Wh...

6 månader ago | 0

| accepted

Answered
How do I use a trained network to make new predictions?
save KanushkaNet; The above command which you used will save all your current variables from the workspace. If you want to save...

6 månader ago | 0

Answered
trainYOLOv2ObjectDetector function details.
You can refer to the following link on how to use the trainYOLOv2ObjectDetector function: https://www.mathworks.com/help/vision...

6 månader ago | 0

| accepted

Answered
How can i use the validation set in object detection using deep learning?
The trainFasterRCNNObjectDetector does not support the “ValidationData”, “ValidationFrequency” and “ValidationPatience” options ...

6 månader ago | 0

Answered
neural network regression model error
As I understand, your input dataset, “x” has size 1000 x 1 and the output, “y” has size 1000 x 1 and you are defining a regressi...

6 månader ago | 0

Answered
How to convert a binary image into lines only
Hi, You can use the command “bwskel” for this purpose. It takes two parameters as input, the binary image and minimum branch l...

6 månader ago | 0

Answered
How to read and store pixel intensity and coordinates values of a grayscale-converted image?
Hi, As I understand, you want to get the pixel intensity value of the grayscale image (B) at a particular location (xi, yi). ...

6 månader ago | 0