Community Profile

photo

Benjamin Thompson


Last seen: 9 days ago Active since 2015

Programming Languages:
C++, C, MATLAB
Spoken Languages:
English

Statistics

  • 3 Month Streak
  • Revival Level 2
  • Knowledgeable Level 4
  • First Answer

View badges

Content Feed

View by

Answered
matlab rank of a matrix
You are probably attempting to go below the numerical precision of your hardware and software: eps ans = 2.2204460...

10 days ago | 0

Answered
how to solve this error?
You can use the print function to save a figure to disk. See this thread: https://www.mathworks.com/matlabcentral/answers/10...

10 days ago | 0

Answered
create csv file with user input and current date as name
Use sprintf to generate a local string variable. Use a \\ sequence to include a single \ in the string. Then pass the string a...

11 days ago | 0

Answered
How can I average values from 3 consecutive rows of a matrix in one designated column repeatedly over the whole matrix?
If your matrix can have a number of rows that is a multiple of three, and you should know its size at the time you need to perfo...

24 days ago | 0

| accepted

Answered
How to concatenate multiple text files in a single matrix
The third file does not have as many columns as the first two. Table concatenation requires a consistent number of variables to...

24 days ago | 0

Answered
Plotting satellite elevation and azimuth using skyplot
You have to make all data into a one dimensional vector, not a two dimensional matrix. One quick way is to use one colon instea...

29 days ago | 0

| accepted

Answered
Plotting satellite elevation and azimuth using skyplot
skyPlot is intended to show a snapshot of multiple satellites rather than a plot history. Type "doc skyplot" for details. Here...

30 days ago | 0

Answered
Runge-Kutta matlab library
ode45 is the closest Runge Kutta implementation for what you are describing. Type "doc ode45" for details.

30 days ago | 0

Answered
How to store the difference between adjacent pixel values of image
Use imfilter with a 1D filter argument. If your h is vertical then the difference operation is in the vertical direction. If t...

1 month ago | 0

Answered
What is the equilavent function for niftiread in 2016 matlab? Can't upgrade on current SSH
There are some third party posts of code for reading Nifti on the MATLAB File Exchange.

1 month ago | 0

| accepted

Answered
Bad Image Rectification after Stereo Calibration and Image Rectification (From 2D to 3D)
If you are using this function, note its description in the documentation: [J1,J2] = rectifyStereoImages(I1,I2,stereoParams) ...

1 month ago | 0

Answered
how to find lines and update values in an XML file and then export the updated XML file?
The easiest thing (other than just your own text editor), is xml2struct and struct2xml from Wouter Falkena from the File Exchang...

1 month ago | 0

Answered
Concatenation of multiple matfile into one matfile
MAT files contain a list of variables with your data. Please post a sample MAT file for the Community to see if you have furthe...

1 month ago | 0

Answered
Hello. I'm using the following code in embedded matlab in simulink. And I,m getting the message that Variable 'D' is not fully defined on some execution paths. And i don't kno
If DeltaVA could evaluate to zero then D will not be defined. If you want to be sure D is defined, then initialize it to a good...

1 month ago | 0

| accepted

Answered
Adding additional column into the array
Reducing row size from 100 to 5 for clarify of answering here. >> A = zeros(5,3) A = 0 0 0 0 0 ...

1 month ago | 0

| accepted

Answered
How to find out distance of two different location using their latitude and longitude?
This is pretty easy if you have the Mapping Toolbox: >> [xNorth, xEast, xDown] = geodetic2ned(23.254712039, 87.846917766, 0, ...

1 month ago | 0

Answered
compiled app runtime problem
I found a similar answer to your problem: https://www.mathworks.com/matlabcentral/answers/513042-when-working-from-home-why-d...

1 month ago | 0

Answered
How do i use trapz to integrate each element in a nx1 matrix?
trapz is for numerical integration. It does not work on symbolic equations. For symbolic integration use the "int" function fr...

2 months ago | 0

Answered
Microsoft Visual Studio 2022 set up as default C and C++ compiler in Matlab 2021a
This was added in R2021B Update 3. Not sure if R2021A will ever get this update. VS 2022 was release only very recently.

2 months ago | 0

Answered
Is there any way to speed up fclose when writing many small files?
Maybe push all the closing to the end and use fclose('all')? Is it possible there is still a write operation being completed an...

2 months ago | 0

Answered
Omit detrending in certain portion of signal
You can use an index vector and the 'SamplePoints' option for the detrend function: >> n = 1:length(signal); >>n = n'; >> I =...

2 months ago | 0

Answered
Copy elements in a structure or a matrix?
Here are some sample commands for creating and copying structure arrrays: A(1,1) = struct('X', 1, 'Y', 2, 'Z', 3) A(2,1) = s...

2 months ago | 0

Answered
no checkerboards detected in the images
The other camera looks a little washed out in sections due to lighting glare. Try running both images through the single camera...

2 months ago | 0

Answered
Difficulty with using sscanf to perform natural order sort on filename list
You might have better luck with grep, but this appears to work with your test cases. sscanf stops at the first character that c...

2 months ago | 0

Answered
How do I track changes in a Simulink model?
You can add a Model Info block to your model, or a DocBlock. Every model or library has a version number that is incremented ev...

2 months ago | 0

Answered
How can I solve enumerated value access error in Matlab ?
If your enumerated type does not have a value for 2047, and you try to convert an input value of 2047 into the enumerated type, ...

2 months ago | 0

Answered
Best methods for creating custom component libraries and sharing them amongst mutliple users.
MATLAB supports GIT or SVN. You could use others but there is no MATLAB integration. https://www.mathworks.com/help/matlab/sou...

2 months ago | 1

Answered
I selected the license during install but when I run it i get license manager error -83
Here is the web site for MATLAB support: https://www.mathworks.com/support/contact_us.html?s_tid=sp_ban_cs

2 months ago | 0

Answered
Real-time data acquisition and data plot problem
If the frequency of the signal is maybe 50 Hz or less it might look OK. Windows and Linux processes typically can only handle e...

2 months ago | 0

Answered
Fourier series doesn't approximate with bigger number of points
The fourier series coefficients should be divided by pi when calculating the reconstruction: https://mathworld.wolfram.com/Fo...

2 months ago | 0

Load more