I'm an Application Support Engineer at MathWorks

Disclaimer: Any articles/ideas/suggestions/answers are my own and in no way reflect that of the MathWorks

Answered

Can I remove axes from a tiledlayout, and have it reflow?

You can index the tiles using the nexttile(tilelocation) format. Then use the delete(gca) to delete any previously created tile ...

Can I remove axes from a tiledlayout, and have it reflow?

You can index the tiles using the nexttile(tilelocation) format. Then use the delete(gca) to delete any previously created tile ...

2 months ago | 2

| accepted

Answered

Circle Detection in binary image

Since you cannot use 'imfindcircles', have a look at this blog post for an implementation without using the 'imfindcircles' func...

Circle Detection in binary image

Since you cannot use 'imfindcircles', have a look at this blog post for an implementation without using the 'imfindcircles' func...

2 months ago | 0

| accepted

Answered

How to make prediction using DNN, LSTM, RNN, CNN regression models?.

A few basic steps for approaching a prediction problem: Read the data into MATLAB (train, test and predict) Define your networ...

How to make prediction using DNN, LSTM, RNN, CNN regression models?.

A few basic steps for approaching a prediction problem: Read the data into MATLAB (train, test and predict) Define your networ...

2 months ago | 0

| accepted

Answered

Using Weighted Classes in CNN

The 'ClassWeights' property for the classificationLayer has been introduced in MATLAB R2021a. So if you are running a version pr...

Using Weighted Classes in CNN

The 'ClassWeights' property for the classificationLayer has been introduced in MATLAB R2021a. So if you are running a version pr...

2 months ago | 0

| accepted

Answered

Changing the start folder for compiled standalone app

Have a look at this answer. You would need to add the required parts of this code to the OpeningFcn() of your application.

Changing the start folder for compiled standalone app

Have a look at this answer. You would need to add the required parts of this code to the OpeningFcn() of your application.

2 months ago | 0

| accepted

Answered

Selecting certain timetable data based on the date they occur and replacing the corresponding variable at that time with nan

You can index the timetables using the timestamp. You can also select a period of time as the index. Have a look at the examples...

Selecting certain timetable data based on the date they occur and replacing the corresponding variable at that time with nan

You can index the timetables using the timestamp. You can also select a period of time as the index. Have a look at the examples...

2 months ago | 0

Answered

Integrating C# code into Simulink?

As of now, Simulink only takes up custom blocks which integrate with C/C++ code. For further details or if you need help regardi...

Integrating C# code into Simulink?

As of now, Simulink only takes up custom blocks which integrate with C/C++ code. For further details or if you need help regardi...

2 months ago | 0

Answered

Matlab online is not working

Have a look at this answer for fixes related to your problem. If nothing works, do talk to your university for the license issue...

Matlab online is not working

Have a look at this answer for fixes related to your problem. If nothing works, do talk to your university for the license issue...

2 months ago | 0

Answered

3D histogram plot for a tensor data

Have a look at the solution posted here. You can use cart2sph to convert your cartesian coordinates to spherical coordinates. Or...

3D histogram plot for a tensor data

Have a look at the solution posted here. You can use cart2sph to convert your cartesian coordinates to spherical coordinates. Or...

2 months ago | 0

Answered

'Double' data is loading as 'single' from database when database reports 'double'

Try setting the 'ToScalar' to true in <https://in.mathworks.com/help/matlab/ref/table2struct.html#btx37wq-2 table2struct> .

'Double' data is loading as 'single' from database when database reports 'double'

Try setting the 'ToScalar' to true in <https://in.mathworks.com/help/matlab/ref/table2struct.html#btx37wq-2 table2struct> .

2 months ago | 0

| accepted

Answered

Looking for someone to Help/model create a closed loop system i have a drawing of

Try using the Simscape Multibody toolbox. The documementation for the same can be found here.

Looking for someone to Help/model create a closed loop system i have a drawing of

Try using the Simscape Multibody toolbox. The documementation for the same can be found here.

2 months ago | 0

Answered

How do I save a portion of an http mp3 bitstream of a radio broadcast in Matlab?

webread expects the response to be complete before it can process the data. So a workaround for processing streams froms the web...

How do I save a portion of an http mp3 bitstream of a radio broadcast in Matlab?

webread expects the response to be complete before it can process the data. So a workaround for processing streams froms the web...

2 months ago | 0

| accepted

Solved

Calculate the Number of Sign Changes in a Row Vector (No Element Is Zero)

For a row vector: V=[7 1 2 -3] there is one sign change (from 2 to -3). So, the function you write must return N=1. F...

2 months ago

Solved

Getting the indices from a vector

This is a basic MATLAB operation. It is for instructional purposes. --- You may already know how to <http://www.mathworks....

2 months ago

Answered

Is there a way to insert a common ylabel to secondary axes in a tiled layout?

You need not create a figure for each of your tile, instead you can have a common figure which can then later be labelled as sho...

Is there a way to insert a common ylabel to secondary axes in a tiled layout?

You need not create a figure for each of your tile, instead you can have a common figure which can then later be labelled as sho...

2 months ago | 0

| accepted

Answered

Portfolio rebalancing with changing assets

You might find these helpful. Consider going through the training videos and the examples.

Portfolio rebalancing with changing assets

You might find these helpful. Consider going through the training videos and the examples.

3 months ago | 0

Answered

extract the zero-order spectrum and the positive first-order spectrum

Currently there are no MATLAB inbuilt functions to extract the zero order and the first order spectrums. You can however use fft...

extract the zero-order spectrum and the positive first-order spectrum

Currently there are no MATLAB inbuilt functions to extract the zero order and the first order spectrums. You can however use fft...

3 months ago | 0

Answered

MATLAB license activation issue

You might have your issue addressed here. For starters you can try running the app as administrator.

MATLAB license activation issue

You might have your issue addressed here. For starters you can try running the app as administrator.

3 months ago | 0

| accepted

Answered

Create a candle chart with non financial data ?

To generate a candlestick chart you have to have variables named 'Open', 'High', 'Low', and 'Close' in your data be it a Matrix,...

Create a candle chart with non financial data ?

To generate a candlestick chart you have to have variables named 'Open', 'High', 'Low', and 'Close' in your data be it a Matrix,...

3 months ago | 0

| accepted

Answered

Output prediction Problem for ANN

Your code looks just fine. Do you intend to compare the closing prices of one day with the closing prices of the next day or wit...

Output prediction Problem for ANN

Your code looks just fine. Do you intend to compare the closing prices of one day with the closing prices of the next day or wit...

3 months ago | 0

Answered

How to implement MATLAB/Simulink generated C code onto intel processors?

If you're looking to generate code for deep learning applications targeting an embedded platform that uses an Intel® processor. ...

How to implement MATLAB/Simulink generated C code onto intel processors?

If you're looking to generate code for deep learning applications targeting an embedded platform that uses an Intel® processor. ...

3 months ago | 0

Answered

Update matlab compiled app

You cannot exactly "update" the app to add some functionality. Sending out a new executable is far safer. You can find ways to s...

Update matlab compiled app

You cannot exactly "update" the app to add some functionality. Sending out a new executable is far safer. You can find ways to s...

3 months ago | 0

| accepted

Answered

Using .mat files to train convolutional NN - overfitting issue?

If you used a 'clear all' command, there's no way the previous created files and their contents(variables) are still in memory. ...

Using .mat files to train convolutional NN - overfitting issue?

If you used a 'clear all' command, there's no way the previous created files and their contents(variables) are still in memory. ...

4 months ago | 0

Answered

what is matlab code to be used to classify image by using GAN?

The use of GANs for classification is a relatively unexplored area right now. However if you want to try the python code you hav...

what is matlab code to be used to classify image by using GAN?

The use of GANs for classification is a relatively unexplored area right now. However if you want to try the python code you hav...

4 months ago | 0

Answered

can I draw parallel using line labeling in video labeling app ?

You can define the ROI labels from the ones given here. You can use polylines to implement parallelism in them.

can I draw parallel using line labeling in video labeling app ?

You can define the ROI labels from the ones given here. You can use polylines to implement parallelism in them.

4 months ago | 0

Answered

optimization proble risk parity

MATLAB does have a toolbox dedicated to solving optimization problems like these. Do have a look at its documentation for the ra...

optimization proble risk parity

MATLAB does have a toolbox dedicated to solving optimization problems like these. Do have a look at its documentation for the ra...

4 months ago | 0

| accepted

Answered

Script that can solve any set of three linear equations?

Since you mentioned that you're not much familiar to MATLAB, you might wanna learn about how to represent equations. This here m...

Script that can solve any set of three linear equations?

Since you mentioned that you're not much familiar to MATLAB, you might wanna learn about how to represent equations. This here m...

4 months ago | 0

Answered

Read Tif File shows Error "Cannot handle different values per sample for "BitsPerSample"."

I hope the workaround mentioned here worked.

Read Tif File shows Error "Cannot handle different values per sample for "BitsPerSample"."

I hope the workaround mentioned here worked.

4 months ago | 0

Answered

Call User made Python modlue from Matlab

Try adding adding the path as: insert(py.sys.path,int32(0),'C:\Users\giaco\Documents\PROJ_WORK_Thesis\'); Please verify the fo...

Call User made Python modlue from Matlab

Try adding adding the path as: insert(py.sys.path,int32(0),'C:\Users\giaco\Documents\PROJ_WORK_Thesis\'); Please verify the fo...

4 months ago | 1

| accepted

Answered

testing, validating and training a feedforwardnet

You can add the split ratios manually to the network's divideParams. Here's a snippet showing the same. [x,t] = simplefit_datas...

testing, validating and training a feedforwardnet

You can add the split ratios manually to the network's divideParams. Here's a snippet showing the same. [x,t] = simplefit_datas...

5 months ago | 1

| accepted