Answered
Hex file from Simulink
Hi Lorenza, To generate a .HEX file from Simulink, you cannot directly export it from the Simulink model. However, you can use ...

2 months ago | 2

Answered
Is there a way to holdout specific data?
Hi Mark, You can use the array indexing to specify the training and testing sets using indexes. Please find below the code sni...

2 months ago | 0

Answered
detokenizedDocument: How to turn tokenized text back into human-readable, non-tokenized text?
Hi, As per my knowledge, there is no such function to de-tokenize the tokenized document. However, you can process the text tha...

2 months ago | 0

Answered
Error creating array with evenly spaced elements
Hi @Luan Vuong, The issue that you are facing is due to the floating point error. As you also pointed out that the exact value ...

2 months ago | 2

| accepted

Answered
How to use the grey prediction model?
Hi, MATLAB provides linear, non-linear, discrete time as well as continous time grey box model. You can refer to the following ...

3 months ago | 0

Answered
How to save chararcter matrix in single column in NetCdf file?
Hi, The following MATLAB answer that handles the same issue that you are facing: https://www.mathworks.com/matlabcentral/answe...

3 months ago | 0

Answered
Get netCDF data from Copernicus Marine
Hi Asier, I understand that you are trying to access netCDF data using an OPeNDAP URL using the "ncdisp" function in MATLAB R2...

3 months ago | 0

Answered
how can import data excel to scope in simulink? (plot charts)
Hi, You can follow the steps below to visualize Excel sheet data in Scope block in Simulink: 1) Load the excel sheet in form o...

3 months ago | 0

Answered
Loss function Ford multi Output regression
Hi, Yes, you are correct the different magnitudes of outputs will affect the training of the neural network model. "Output 1" w...

3 months ago | 0

Answered
Importing data for a Simulink example in MATLAB
Hi @SNM Nima, The above example is using a "PreLoadFcn" model callback as shown below: load('solar_load_data_24h.mat') The ab...

3 months ago | 1

Answered
Matlab on ARM processor?
Hi Brennan, MATLAB supports Apple silicon processors in combination with macOS, other ARM processors are not supported. Additi...

3 months ago | 0

Answered
Simulink user interface slow
I was also facing a similar issue. In my case the issue was due to the anti-virus software which was slowing down the Simulink U...

3 months ago | 0

Answered
error: unknown type name 'mxArray'
Hi Aubrey, You can refer to the following MATLAB answer which handles a similar issue: https://www.mathworks.com/matlabcentral...

3 months ago | 0

Answered
'if' instead of a 'switch' when auto code generation
Hi @예진 박, You can refer to the "ConvertIfToSwitch" configuration parameter of "coder.EmbeddedCodeConfig" object to control the ...

5 months ago | 1

Answered
Extract features from training images (Matlab - Computer Vision)
You can use the MATLAB functions "detectSIFTFeatures" and "extractHOGFeatures" to extract the SIFT and histogram of gradient fea...

5 months ago | 0

Answered
We are trying to develop an AI model that detects 7 types of abnormal driver behavior
Hi @현준, I would recommend using video data to capture temporal dynamics and context which are necessary for accurate behaviour ...

5 months ago | 0

Answered
Modeling and solving a pde
Hi NS, It would be helpful if you can attach the figure mentioned in the query. Please refer to the following post which mentio...

5 months ago | 0

Answered
how to use printf inside a CUDA kernel?
Hi Daniel, One more suggestion that I found in the following discussion is to use "cudaDeviceSynchronize" to ensure that the ke...

5 months ago | 0

Answered
Calculation Value at Risk in Matlab
Hi Preeti, In addition to Umar's response, you can also refer to the following MathWorks documentation that explains how Value-...

5 months ago | 0

Answered
Can i do a Time Sensitive Netowrk formulation in MATLAB?
Hi Zhao, You can refer to the following resources that involves Time Sensitive Network formulation using MATLAB and Simulink. ...

8 months ago | 0

Answered
Component under test in test harness
Hi Daniel, You can follow the following steps to programmatically retrieve the Component under Test. 1) Use sltest.harness.fi...

8 months ago | 0

Answered
Trying to do Image segmentation by neural networks, but mini-batch accuracy and mini-batch loss are fluctuating
Hi Peter, In order to prevent the fluctuation in the results, you can try updating the learning rate adaptively while training ...

8 months ago | 0

Answered
dTdt=−k(T−Ta) k=0.4,Ta=25∘, initial condition T(0)=T0=75∘C .how to solve using ode45 and report the temperature obtained at times t=1,2,3 and 4 . report T(1.0)
Hi Ramesh, You can follow the following steps to solve a differential equation using "ode45" function 1) Define the ODE functi...

8 months ago | 0

Answered
detectSIFTFeatures only working for uint8
Hi Michael, If you want to use an image of double data type as input, you should first scale it down to the range [0, 1]. Doing...

8 months ago | 0

| accepted

Answered
using two 73728 x 3 matrix with RGB and Contour to draw a heatmap
Hi Jinyang, In my understanding you want to create a color label similar to as shown in the top portion of the left image. You...

8 months ago | 0

Answered
Question about python API and computer vision module
Hi Hugo, The reason that you are seeing the output as "<matlab.object object at 0x7f73e51eb050>" is not due to lack of converg...

8 months ago | 0

Answered
How to crop an ultrasonography to remove annotations and the black portions?
Hi Ostache, You can use edge detection or thresholding to identify the content boundaries and then crop accordingly. This metho...

8 months ago | 0

Answered
Mean Composite of netcdf images
Hi Arnab, Based on the code you have provided above, you've successfully looped through your .nc files, read the relevant data ...

8 months ago | 0

Answered
How to train LSTM net on very large dataset.
Hi Davey, If you don't want create multiple smaller files, you can create a MATLAB's custom datastore that reads the data direc...

9 months ago | 0

Answered
Convert a sound to a mathematical formula
Hi Hadasa, You can refer to the following MATLAB answers which involves a similar problem statement of getting a mathematical...

9 months ago | 0

Load more