I am an Application Support Engineer at MathWorks.

Disclaimer : Any advice or opinions here are my own, and in no way reflect that of MathWorks.

Answered

How the feature outputs of 4 different CNN models be combined

W.r.t the implementation you can refer to Multiple-Input and Multiple-Output Networks. You can use any of the Combination Laye...

How the feature outputs of 4 different CNN models be combined

W.r.t the implementation you can refer to Multiple-Input and Multiple-Output Networks. You can use any of the Combination Laye...

20 jours ago | 0

Answered

Adding additional inputs with corresponding output into the neural network as the auxiliary input

You can refer to Multiple-Input and Multiple-Output Networks and create and deep neural network with inputLayer as imageInputLay...

Adding additional inputs with corresponding output into the neural network as the auxiliary input

You can refer to Multiple-Input and Multiple-Output Networks and create and deep neural network with inputLayer as imageInputLay...

20 jours ago | 0

Answered

What's are the parameters in detect() function?

Refer to the MiniBatchSize input argument explanation of the detect documentation. Minimum batch size, specified as the comma-s...

What's are the parameters in detect() function?

Refer to the MiniBatchSize input argument explanation of the detect documentation. Minimum batch size, specified as the comma-s...

22 jours ago | 0

| accepted

Answered

Out of memory on device using accumarray

Refer to documentation of reset. Try the following code to verify the usage of reset function: g = gpuDevice(1) M = gpuArray(...

Out of memory on device using accumarray

Refer to documentation of reset. Try the following code to verify the usage of reset function: g = gpuDevice(1) M = gpuArray(...

22 jours ago | 0

Answered

Use Matlabfunction in simulink function block

Refer to the following resources: Storing Data Using Data Store Memory Blocks Arguments and Units in MATLAB Function Block Ad...

Use Matlabfunction in simulink function block

Refer to the following resources: Storing Data Using Data Store Memory Blocks Arguments and Units in MATLAB Function Block Ad...

environ un mois ago | 0

Answered

Keras 2.3.1 models

As per my knowledge the "Deep Learning Toolbox Importer for Keras Models support package" installed from Add-On Explorer support...

Keras 2.3.1 models

As per my knowledge the "Deep Learning Toolbox Importer for Keras Models support package" installed from Add-On Explorer support...

environ un mois ago | 0

Answered

Creating a Datastore from either two Datastores, or a number of files populated in different folders.

As per my understanding I'm listing the two ways of comibing the datastores dsL & dsR: %First one imdsCombined = combine(imdsd...

Creating a Datastore from either two Datastores, or a number of files populated in different folders.

As per my understanding I'm listing the two ways of comibing the datastores dsL & dsR: %First one imdsCombined = combine(imdsd...

environ un mois ago | 1

| accepted

Answered

What activation function does fullyConnectedLayer uses?

As mentioned by @Mohammad Sami, In order for an activation function after fullyConnectedLayer, you have to include an activation...

What activation function does fullyConnectedLayer uses?

As mentioned by @Mohammad Sami, In order for an activation function after fullyConnectedLayer, you have to include an activation...

environ un mois ago | 0

Answered

Make axis line invisible but not tick labels

As per my knowledge w.r.t current documentation, I think there is no way to make borders dissapear along all the sides with tick...

Make axis line invisible but not tick labels

As per my knowledge w.r.t current documentation, I think there is no way to make borders dissapear along all the sides with tick...

environ un mois ago | 0

Answered

save a fprintf as text data

You can refer to fprintf documentation, it's Examples & fileID = fopen(filename,permission) fileID = fopen('textFile.txt','w');...

save a fprintf as text data

You can refer to fprintf documentation, it's Examples & fileID = fopen(filename,permission) fileID = fopen('textFile.txt','w');...

environ un mois ago | 0

Answered

Why test, train and validation performance are so different from global performance in my neural network?

As per my knowledge, the way you are calculating the trainPerformance, valPerformance & testPerformance may not be correct. Inst...

Why test, train and validation performance are so different from global performance in my neural network?

As per my knowledge, the way you are calculating the trainPerformance, valPerformance & testPerformance may not be correct. Inst...

environ un mois ago | 0

| accepted

Answered

How to "prune" a one hidden layer NN such that the off diagonal elements of the weights, that is, "net.IW{1}" and "net.LW{2}", are zeros?

As per my knowledge w.r.t shallow nerual networks you cannot freeze non-diagonal weights & make the diagonal wieghts only to upd...

How to "prune" a one hidden layer NN such that the off diagonal elements of the weights, that is, "net.IW{1}" and "net.LW{2}", are zeros?

As per my knowledge w.r.t shallow nerual networks you cannot freeze non-diagonal weights & make the diagonal wieghts only to upd...

environ un mois ago | 1

Answered

Data augmentation in CNN

The following are few suggestions: Make sure that all the classes have equal number of observations. Check how trainNetwork us...

Data augmentation in CNN

The following are few suggestions: Make sure that all the classes have equal number of observations. Check how trainNetwork us...

environ un mois ago | 0

| accepted

Answered

How to compute lognormal distribution

You can try something like below: format long g folder = 'BCC_CSM.xlsx'; file = xlsread(folder); dt = datetime([file(:,1:3...

How to compute lognormal distribution

You can try something like below: format long g folder = 'BCC_CSM.xlsx'; file = xlsread(folder); dt = datetime([file(:,1:3...

environ un mois ago | 0

| accepted

Answered

Labeling a stacked bar

The following example might help you: x = [1 2 3]; vals = [2 3 6; 11 23 26]; b = bar(x,vals); xtips1 = b(1).XEndPoints; y...

Labeling a stacked bar

The following example might help you: x = [1 2 3]; vals = [2 3 6; 11 23 26]; b = bar(x,vals); xtips1 = b(1).XEndPoints; y...

environ un mois ago | 0

Answered

How do I create 2 x-axis labels?

The following code might help you: % yAxis label 1 t = text(-20,60,'Cancer','HorizontalAlignment','center','FontWeight','bold'...

How do I create 2 x-axis labels?

The following code might help you: % yAxis label 1 t = text(-20,60,'Cancer','HorizontalAlignment','center','FontWeight','bold'...

environ un mois ago | 0

Answered

Add annotation to a parent figure middle left

The following code might help you: close all figure1 = figure('PaperSize',[8 8]); N = 5; for i=1:N f = subplot(N,1,i); ...

Add annotation to a parent figure middle left

The following code might help you: close all figure1 = figure('PaperSize',[8 8]); N = 5; for i=1:N f = subplot(N,1,i); ...

environ un mois ago | 0

| accepted

Answered

how to update certain library block

The SPICE you mentioned are under the Additional Components. In the release notes under the R2019a->Simscape Electrical->Library...

how to update certain library block

The SPICE you mentioned are under the Additional Components. In the release notes under the R2019a->Simscape Electrical->Library...

environ un mois ago | 0

Answered

Index in position 1 is invalid. Array indices must be positive integers or logical values.

for e=1:798 if (f2(b,1) > 0 && f2(b+1,1) < 0)||(f2(b,1) < 0 && f2(b+1,1) > 0) s = s + 1; else...

Index in position 1 is invalid. Array indices must be positive integers or logical values.

for e=1:798 if (f2(b,1) > 0 && f2(b+1,1) < 0)||(f2(b,1) < 0 && f2(b+1,1) > 0) s = s + 1; else...

environ un mois ago | 0

Answered

Plot/Animating multiple lines on matlab at the same time?

From the above code I see that plot ([A1(1) P1(1)],[A1(2) P1(2)]) is called only when x1 reaches it's final iteration value. So ...

Plot/Animating multiple lines on matlab at the same time?

From the above code I see that plot ([A1(1) P1(1)],[A1(2) P1(2)]) is called only when x1 reaches it's final iteration value. So ...

environ un mois ago | 0

Answered

How to graph plots with different value variables?

Refer to the documentation of hold and use it as follows: for i=1:8 % % Your code goes here % plot(FX,K1(i)) ...

How to graph plots with different value variables?

Refer to the documentation of hold and use it as follows: for i=1:8 % % Your code goes here % plot(FX,K1(i)) ...

environ un mois ago | 0

Answered

student 버전 여러대 컴퓨터에서 사용

Refer to the following MATLAB Student and MATLAB and Simulink Student Suite & How do I transfer a Student or Home license to a n...

student 버전 여러대 컴퓨터에서 사용

Refer to the following MATLAB Student and MATLAB and Simulink Student Suite & How do I transfer a Student or Home license to a n...

environ un mois ago | 0

Answered

modify the matrix, rearrangement of elements

The following code might help you: sz = size(a); rowMat = zeros(1,prod(sz)); ind = 1; for i = 1:sz(1) j = 1; ii = ...

modify the matrix, rearrangement of elements

The following code might help you: sz = size(a); rowMat = zeros(1,prod(sz)); ind = 1; for i = 1:sz(1) j = 1; ii = ...

environ un mois ago | 0

| accepted

Answered

Adding different colorbars to each row of subplots? Removing subplot axes? Decrease subplot spacing?

The following code might help you w.r.t the points 1. COLORBAR(Changing the Position (position: [left bottom width height]) prop...

Adding different colorbars to each row of subplots? Removing subplot axes? Decrease subplot spacing?

The following code might help you w.r.t the points 1. COLORBAR(Changing the Position (position: [left bottom width height]) prop...

environ un mois ago | 0

| accepted

Answered

Neural Network for binary classification

You can refer to the Deep Learning Toolbox — Examples, List of Deep Learning Layers, Create Simple Image Classification Network ...

Neural Network for binary classification

You can refer to the Deep Learning Toolbox — Examples, List of Deep Learning Layers, Create Simple Image Classification Network ...

environ un mois ago | 0

Answered

Is it possible to have a structure as an input and use its fields as constants in Simulink?

You can refer to Simulink.Bus.createObject & How to convert a struct into a bus. And the following code might help you: par.am...

Is it possible to have a structure as an input and use its fields as constants in Simulink?

You can refer to Simulink.Bus.createObject & How to convert a struct into a bus. And the following code might help you: par.am...

environ un mois ago | 0

| accepted

Answered

filling an empty matrix using a for loop

You can define U_det_r as a cell array or normal array and store the values corresponding to each iteration as follows: U_det_...

filling an empty matrix using a for loop

You can define U_det_r as a cell array or normal array and store the values corresponding to each iteration as follows: U_det_...

environ un mois ago | 0

| accepted

Answered

Z order (Morton Curve) for matrix .and Hausdorff distance.

From the above information the function mapping calls itself recursively. So if you simply renamed the function mapping to Zord...

Z order (Morton Curve) for matrix .and Hausdorff distance.

From the above information the function mapping calls itself recursively. So if you simply renamed the function mapping to Zord...

environ un mois ago | 0

Answered

LSTM input size mismatch

With the following code I was able to construct layerGraph with no errors. Make sure you define the lstmLayer with right input a...

LSTM input size mismatch

With the following code I was able to construct layerGraph with no errors. Make sure you define the lstmLayer with right input a...

environ un mois ago | 0

Answered

How to open multiple images sequentially for text extraction and save it in a file

I think the read(ds) reads the files in the datastore in the order ds.Files{1}, ds.Files{2}, ds.Files{3}...........so on. Once ...

How to open multiple images sequentially for text extraction and save it in a file

I think the read(ds) reads the files in the datastore in the order ds.Files{1}, ds.Files{2}, ds.Files{3}...........so on. Once ...

2 mois ago | 0

| accepted