Answered
MPU9250 IMU Accelerometer modeling in Simulink
Refer to the following link to know more about measuring acceleration using MPU9250 sensor. https://www.mathworks.com/help/supp...

4 years ago | 0

| accepted

Answered
How to recognize huge letters using OCR?
You could refer to the following link to know more about how to use the OCR function and it also has some pre-processing techniq...

4 years ago | 0

Answered
how can I set spinner limit range based on text box entry ?
Hi, Firstly you could check if your text box returns which type of data. The value you get from a normal textbox is a char or s...

4 years ago | 0

| accepted

Answered
2D Gray scale volumatric image slicing: with uniform cross-section
You could view individual XY planes by doing normal matrix slicing and using "imshow" function. You can check each of the image ...

4 years ago | 0

Answered
How to convert text file to asci code ?
Hi, Once you read the text data from your file, you can convert text to binary by using dec2bin function. a = dec2bin("Some St...

4 years ago | 0

Answered
How do I avoid using if and else statements in this code
Hi, If your main goal is to remove the if else statements from the code, you can write the following code first and then write ...

4 years ago | 0

| accepted

Answered
How to find streaks in a categorical vector?
You can use "findgroups" function to make groups in Categorical Data. The function accepts the data as categorical data so you d...

4 years ago | 0

Answered
Why does textscan only read the first row of my text file?
Hi, Instead of using the below line, b = textscan(fileids{file},'%n %n %*n %*n %*n %*n %*n',-1, 'delimiter', '/t'); use this,...

4 years ago | 0

| accepted

Answered
How to vectorize this code? element wise to save time
Hi, As all the three for loops have some dependencies it is difficult to vectorize the code. you can try the following code, i...

4 years ago | 0

Answered
How to display temparature, pressure and altitude of the BMP 280 using Arduino (uno) on Matlab?
Hi, You have to establish an I2C channel connection after connecting the arduino and the required parameters like temperature, ...

4 years ago | 0

Answered
Stuck at MATLAB Onramp
Hi, The question is a bit ambiguos at start but if you look at the code carefully you will understand the each step. It asks y...

4 years ago | 5

Answered
Getting Matlab to read MMA8451 accelerometer sensor on arduino
Hi, Refer to the following link for more information on reading acceleration data from MMA8451 accelerometer sensor https://ww...

4 years ago | 0

Answered
How to use a machine learning model generated with matlab classifier learner in simulink
Hi, As you are ready with the model made in classification learner app, you have to export the model as a MATLAB function and t...

4 years ago | 0

| accepted

Answered
Plot in a script with three time series, each series has to be a different color
Hi, If you try to plot any two timeseries plots in the same plot using "hold on" you would always get plots with different co...

4 years ago | 0

Answered
find max value with for loop
Hi, You could use the following code snippet if you want to use for loops specifically to find max. max = B(1); for i = 2:num...

4 years ago | 0

Answered
An Understanding Of The Steps For A Real TIme Human Activity Recognition Surveillance System
Hi, The following links contains examples of Human activity recognition. https://www.mathworks.com/help/stats/human-activity-r...

4 years ago | 1

| accepted

Answered
NARX neural network - how to use different time series for train, validation and testing the network?
Firstly, You can train the model without using divideblock and supply your own testing and validation data(It is not a compulsio...

4 years ago | 0

Answered
Index in position 3 exceeds array bounds (must not exceed 1).
Going through the comments it is evident that when calling S(ID,ID,ID) = S(ID,ID,ID) + K; The size of S(ID,ID,ID) is 4*4*4 an...

4 years ago | 1

Answered
How to programmatically stop simulation when output converges
You could use a Stop Simuation Block to stop the simulation by defining a condition which you want to satisfy before stopping th...

4 years ago | 0

| accepted

Answered
How the RL agent knows that it has to provide 'action' as 'FLOW' because none of my input or observations is flow? What decides the output of action?
Hi, The details are given properly in the link which you have sent. In the example, input is a scalar variable which indicates ...

4 years ago | 0

Answered
Problem with a LSTM network
Hi, The small problem with your code is that you are not putting the dimensions of the SesnorsTrain and MachineStatusTrain prop...

4 years ago | 0

Answered
Displaying MSE values at training,validation and testing ratios
Hi, Below is a link to similar question which could be of your use. https://www.mathworks.com/matlabcentral/answers/405606-how...

4 years ago | 0

Answered
how to get an output from this dialog box?
You could use a Global variable, assign that variable in the callback function and you could retrieve the variable in your progr...

4 years ago | 0

Answered
sir please explain me how to form network and training for INSTANCE segmentation
Hi, You could refer to the following link and get to know more about how to do a normal semantic by using your data, creating a...

4 years ago | 0

Answered
callback for pushbutton in a gui to solve a Karnaugh Map
You could refer to the following link to know more about how to create push button callbacks. https://www.mathworks.com/help/ma...

4 years ago | 0

Answered
Array indices must be positive integers or logical values.
Hi, Using the following lines decreases the pos value to less than 1, Thus the MATLAB throws an error. From your given code, a...

4 years ago | 0

Answered
Apparent bug when images.ROI is placed within an hggroup
I have heard that this issue is known to the concerned developers and the issue will be resolved in 2020a release. As a work aro...

5 years ago | 0

| accepted

Answered
Ecompass algorithm and Kalman Filter
To use the kalman filter to analyze the signals you first have to create a state-space model which will be directly passed with ...

5 years ago | 0

Answered
Saving multiple runs within a neural network
It seems the outputmat does not depend on the k value of your "for loop" and thus it is updating the same values in the loop. Y...

5 years ago | 0

Answered
Undefined function 'voltageRead' for input arguments of type 'double'.
It seems like you have used voltageRead instead of readVoltage function.

5 years ago | 0

Load more