Answered
how to differentiation code,?
If you have x as sampled signal in time, differentiation is easy: (x(t2) - x(t1)) / (t2 - t1)

4 years ago | 0

Answered
Assign NaN to specific rows(based on criteria) for multiple table variables
If you are assigning from a scalar it seems you must do this column by column. Use an index vector to select which rows to assi...

4 years ago | 0

Answered
Fixed signal averaging?
Here is a link talking about implementing digital filtering via convolution: https://dsp.stackexchange.com/questions/31882/is-c...

4 years ago | 0

Answered
Solving motion equation using ODE45
If you are looking for the inverse transformation to find p, q, r given the time derivative of the euler angles, see this refere...

4 years ago | 0

Answered
want for loop to stop if k < 4
Use the break command: if (k < 4) break;

4 years ago | 0

Answered
Sorting array by second column to first
Here is one way to do matrix sorting. Your description is a little confusing, but hopefully from this you see the general appro...

4 years ago | 1

Answered
how to create a matrix in matlab
A couple different ways: >> A = [1 3; 2 4] A = 1 3 2 4 >> B = [5 6; 7 8] B = 5 6 ...

4 years ago | 0

Answered
Calibrate image scale automatically
Use the Camera Calibration app, and see the example "Measuring Planar Objects with a Calibrated Camera". Use a checkerboard ima...

4 years ago | 0

| accepted

Answered
how to read a .mat file into table
Are you trying to transpose the data display? transpose(S.data) or use the apostrophe transpose operator, S.data'

4 years ago | 0

Answered
? Using "image treatment" on the "2Dplot"/"2D presentation" of an array to simplify and complement that array
I would use an "image treatment" for visual analysis only, which is what functions like pspectrum will do. But once you start b...

4 years ago | 0

Answered
Why Does This Definition of a Piecewise Function Produce a Warning Message?
This is just a warning about good programming syntax. Good programming style is to never leave order of operations in doubt, an...

4 years ago | 0

| accepted

Answered
Is there a way to pass in one input to a function and print its name AND value in the command window?
You could pass a string containing the variable name to your function, then use eval and num2str to get the content of the varia...

4 years ago | 1

Answered
Splitting a string of numbers into two seperate strings.
The datetime function is very flexible: datetime('01/01 01:00:00', 'InputFormat', 'MM/yy HH:mm:SS') ans = datetime ...

4 years ago | 0

Answered
Using parfeval and getting "Not enough input arguments"
You probably need an @ sign for the function handle, as in: WatchID = parfeval( backgroundPool, @twoParameterFunction, 1, sys...

4 years ago | 1

| accepted

Answered
Work around for Visual Studio manifest permission denied error?
See this example in the help on mex: mex -v COMPFLAGS="$COMPFLAGS -Wall" yprime.c Try adding /MANIFEST:NO inside the doubl...

4 years ago | 0

Answered
Nodelock license installation on Laptop
With Windows 10 or later you will generally need to get admin rights or elevated privileges in order to install any software. H...

4 years ago | 0

Answered
Check if cell contains only certain combination of variables
So something like this? I am sure you can add more detail to deal with all possible cases. myCellArray{1} = 'A'; myCellArra...

4 years ago | 0

Answered
Detect ArUco Markers in an Image
Convert to grayscale using rgb2gray, threshold to binary black/white using imbinarize, label the connected components using bwla...

4 years ago | 0

Answered
How to set the location of the port with code?
See the article "Programmatic Model Editing" in the Simulink documentation.

4 years ago | 0

Answered
Need help finding the std of half a normal distribution
The std function is intended to calculate the standard deviation of a sample of data. It is not intended to estimate parameters...

4 years ago | 0

Answered
Does Simulink offer any block that can tell me if the input is signed or unsigned ?
There is a block in the Math Operations library called "Sign".

4 years ago | 1

Answered
Is the solver 'lsqnonlin' boundary dependent?
Looking at the documentation for lsqnonlin, there are options for solving a problem with or without boundaries on the input vari...

4 years ago | 0

Answered
How to Read Simulink model interfaces in m script without loading the model.
When you select "Save" in Simulink, there should be an option to save as a previous release, at the bottom of the popup menu. I...

4 years ago | 0

Answered
Perturb and Observe MPPT algorithm only outputs maximum possible duty cycle
If I create your MATLAB function block in a Simulink model and add your code, a MATLAB code editor window will open up. You can...

4 years ago | 0

| accepted

Answered
How Can I draw histogram of all video's frames?
Use readFrame to read a single video frame from a VideoReader object. But note that reading frames from a VideoReader is not pa...

4 years ago | 0

| accepted

Answered
Using mex and clibgen
See the article "Define MATLAB Interface for C++ Library" for a description of the MATLAB library definition process along with ...

4 years ago | 0

| accepted

Answered
Setting up Matlab to run parfor
Do you have the Parallel Computing Toolbox installed? That is required. Then, parfor has an argument for choosing a smaller nu...

4 years ago | 2

Answered
Remove unwanted parts from an image
colorThresholder seems to do pretty well using the LAB color space. I generated the attached mask function using colorThreshold...

4 years ago | 1

| accepted

Answered
max row vector in matrix
A = 3×2 table Team Marks ___________ _________________________ {'Cubs' ...

4 years ago | 0

| accepted

Answered
Can I get MATLAB to select a range of data based on low variation in the data?
You might try the article on "Preprocessing Data" in the MATLAB help. There are some examples, there is a related function call...

4 years ago | 0

| accepted

Load more