Answered
How to generate random vehicles during simulation in driving scenario ?
Hi, The Actor Spawn and Despawn feature is available from the R2020b version. Thus in R2020a the "EntryTime" and "ExitTime" prop...

3 years ago | 0

Answered
Hand gesture recognition using Deep learning
For a deep learning network every input image is considered as a matrix of numbers, So in place of an image you can also feed yo...

3 years ago | 0

Answered
Transformation of trained model into an equation - Classification Learner
One way is to take the equation from the documentation and replace the variable with the parameters from the trained model. You ...

3 years ago | 0

| accepted

Answered
Run regressions and output the result as a report using "Report Generator"
I have written a simple code which will generate a report similar to what you expect. You can customize it based on your needs ...

3 years ago | 0

| accepted

Answered
gpuArray Error :failed to load gpu library
Hi, The code works fine for me and I was not able to reproduce this error, Please run the below command and post the result so t...

3 years ago | 0

| accepted

Answered
How do I insert the output of a command as formatted text in a live script.
You can use the evalc to evaluate MATLAB expression and capture results. results = evalc('magic(5)') You can also refer the ...

3 years ago | 0

Answered
Issues with Faster R-CNN regarding Input Image Size, Mini-Batch Loss (NaN value) and another error.
To change the input layer size, you can replace the layer either in MATLAB Terminal using ‘replaceLayer’ function or in Deep Net...

3 years ago | 1

| accepted

Answered
why can imageInputLayer of 'deep network designer' app not be edited?
As of now the Mean and StandardDeviation cannot be modified directly in the Deep Network Designer. A work around for this is to ...

3 years ago | 0

| accepted

Answered
Measuring eccentricity or aspect ratio of elliptical objects in an image using deep learning
You can use a regression model to measure the eccentricity, where the input is an image and the regression output will be the ec...

3 years ago | 0

Answered
Is it possible to map a block diagram transfer function system on MATLAB?
One possible way is, you can define the block diagram as an equation and then solve it with the help of symbolic math toolbox. ...

3 years ago | 0

Answered
calculate orientation by accelerometer and gyroscope
By using the imufilter function the orientation can be calculated using the accelerometer and gyroscope readings. Refer the b...

3 years ago | 0

Answered
How do I animate my Christmas Tree?
Using the below code you can create an animated gif for Christmas tree. filename = 'testAnimated.gif'; % Animated GIF file name...

3 years ago | 0

Answered
Hand gesture recognition using Deep learning
If you have a data set of numeric features, then you can train a deep learning network using a feature input layer. The below co...

3 years ago | 1

Answered
How can I transfer the aging of a battery to a matlab model?
MATLAB and Simulink provides battery models and has examples which explains about the modelling and simulation of the degradati...

3 years ago | 0

Answered
How to collect a new variable each time a function runs and save it into an array
This can be done by using either “Persistent” or “Global” variable. Refer the below code: function myFun(x) persistent n;...

3 years ago | 1

| accepted

Answered
How do I calculate top5/top1 deep learning errors in MATLAB?
Top 1 Accuracy: Output from the model that is the output label with highest probability needs to be same as expected You can...

3 years ago | 1

Answered
How to generate GAN images with pretrained GAN network stored in a .mat file
You can load the stored network present in the .mat file to the MATLAB workspace using the “load” command and you can use it lik...

3 years ago | 0

Answered
Training Neural Networks using Multi-Class output
One way to obtain multiple labels for a single sample is to branch the network and have multiple classification layers or regres...

3 years ago | 0

Answered
Problems solving a trigonometric equation with 2 unknowns
Using “solve” you can solve the equations and using “simplify” command you can do algebraic simplifications of the result. You...

3 years ago | 1

Answered
how to build myself scenario in the example of HighwayLaneChangeTestBench?
After designing the scenario using the driving scenario use the “Export” option and select “MATLAB Function” this will create a ...

3 years ago | 0

Answered
How can I evaluate GAN generated images quantitatively?
Average Log Likelihood, AM Score, Geometry Score, Precision and recall, Tournament based Method are some of other quantitative m...

3 years ago | 0

Answered
how do I calculate the transfer function and impulse response LTI system.
By applying Laplace transform you can get the transfer function. From that you can plot the impulse response. Refer the bel...

3 years ago | 0

Answered
Deep network designer - pretrained network
For Accuracy: accuracy = mean(YPred == YValidation) Refer the below link for more information https://www.mathworks.com/...

3 years ago | 1

Solved


Project Euler: Problem 6, Natural numbers, squares and sums.
The sum of the squares of the first ten natural numbers is, 1^2 + 2^2 + ... + 10^2 = 385 The square of the sum of the first ...

4 years ago

Solved


Project Euler: Problem 5, Smallest multiple
2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder. What is the smalle...

4 years ago

Answered
How can I plot the 3D figure with surface area?
“mesh”, “surf” functions can be used to generate the surface plot. To get the desired results, make sure that the x, y and z are...

4 years ago | 0

| accepted

Answered
Faster RCNN classifier to ONNX format
The “exportONNXNetwork(net,filename)” could be used to export the deep learning network net with weights to the ONNX format, but...

4 years ago | 0

| accepted

Answered
Raspberry Simulink Date reading
To communicate with Raspberry Pi from MATLAB/ Simulink you must have the MATLAB Support Package for Raspberry Pi, you can instal...

4 years ago | 0

Solved


Project Euler: Problem 4, Palindromic numbers
A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 ...

4 years ago

Solved


Project Euler: Problem 3, Largest prime factor
The prime factors of 13195 are 5, 7, 13 and 29. What is the largest prime factor of the number being input, input might be ui...

4 years ago

Load more