Community Profile

photo

Todd Leonhardt


39 total contributions since 2016

Contact

Todd Leonhardt's Badges

  • First Submission
  • Thankful Level 1
  • Knowledgeable Level 2
  • First Answer

View details...

Contributions in
View by

Answered
How do I write a code for Fast Fourier Transform
See this good documentation on how to use the built-in fft() function: http://www.mathworks.com/help/matlab/ref/fft.html

4 years ago | 0

| accepted

Answered
matlab R2015b crashes every time
You appear to be running Windows 7. Do you have Service Pack 1 installed? MATLAB 2015b requires Service Pack 1 (or newer) if y...

4 years ago | 0

Answered
insert a small matrix inside a big matrix
You do it like so. Suppose your 1000 x 1000 matrix is called *big* and your 45x45 matrix is called *little*. big(250:294, 2...

4 years ago | 2

Answered
Sub-scripted Dimension Mismatch Error
At the moment you are attempting to assign something to the 1st column row a (starting at the 2nd row), but a is a matrix of dou...

4 years ago | 0

| accepted

Answered
save a structur to xlsx or txt
There are many ways to solve this problem. My recommendation is as follows: % Convert struct to Table, where your struct i...

4 years ago | 1

Answered
How to locate files in folder or directory where I'm working?
The *exist* function should do what you want: http://www.mathworks.com/help/matlab/ref/exist.html if 2 == exist(file nam...

4 years ago | 0

Answered
How to do a taylor series in matlab with e?
Check out this example of how to compute Taylor series in Matlab: http://www.mathworks.com/help/symbolic/taylor-series.html ...

4 years ago | 0

Answered
Help projecting a vector onto another!
See this answer: http://www.mathworks.com/matlabcentral/answers/2216-projecting-a-vector-to-another-vector

4 years ago | 1

Answered
1 license for 2 different OSes?
You can choose to use your Matlab license to be based on a per user basis, in which case you can install your license on up to 4...

4 years ago | 0

Answered
Profiling mex in Linux
Given the lack of answers I thought I would let people know what ended up working very well for me. So I made the mexFunction...

4 years ago | 4

| accepted

Answered
How to set the variables of genetic algorithm toolbox changing 1 or 0?
If the output *x* is between 0 and 1 then you can simply do: round(x); If not, then you can define a *threshold* and do:...

4 years ago | 0

Answered
Fastest Way of Opening and Reading .csv Files (Currently using xlsread)
*readtable* http://www.mathworks.com/help/matlab/ref/readtable.html

4 years ago | 1

Answered
How do I view what Toolboxes I have for my license?
*ver* Just type "ver" in the MATLAB command window. It will show you what version of MATLAB you are running, your license nu...

4 years ago | 8

Answered
How do I manipulate the variable with respect to which IFFT is computed?
From MATLAB's *fft* function documentation: fft(X,[],DIM) or fft(X,N,DIM) applies the fft operation across the dimension...

4 years ago | 0

Answered
I have license for MATLAB R2015a can i use it for installing MATLAB R2012b ?
Yes. You can always download and install an older version of MATLAB with a newer license. Go here to select the release you ...

4 years ago | 0

Answered
How do i convert a Base-2 number into Base-10?
You can use bin2dec() to convert a binary number string to a decimal number like so: x = bin2dec('0111'); In this case x...

4 years ago | 1

Answered
use sound for a function
The basic equation for a sine wave is: y = A * sin(2*pi*f*t) <https://en.wikipedia.org/wiki/Sine_wave Sine Wave> H...

4 years ago | 0

Question


Profiling mex in Linux
What are my options for profiling a MEX file in Linux? I have a MEX function which runs a whole lot of C code and the code ...

4 years ago | 1 answer | 0

1

answer

Answered
import data from txt missing delimiters
Have you tried the readtable() command yet? http://www.mathworks.com/help/matlab/ref/readtable.html It works very well with ...

4 years ago | 1

| accepted

Submitted


table2structofarrays( inTable )
Function to convert a table to a struct of arrays

4 years ago | 1 download |

Answered
Need to break down EEG signals into 4 frequency bands
If you have the Signal Processing Toolbox, then you can design 4 bandpass filters, one for each band, using the Filter Design an...

4 years ago | 1

Answered
profiling mex using gprof in windows
This article explains how to profile MEX functions in Visual Studio on Windows: http://www.mathworks.com/help/matlab/matlab_ext...

4 years ago | 0

Answered
Id like to see documentation for R2015b.
http://www.mathworks.com/help/releases/R2015b/index.html You probably need to log in to view archived documentation such as t...

4 years ago | 1

| accepted

Answered
export large size data from matlab to excel
See the documentation here on how to do what you want: http://www.mathworks.com/help/matlab/import_export/exporting-to-excel-sp...

4 years ago | 0

| accepted

Answered
Is there a way to control the action of an external program through MATLAB?
You can use Java to automate GUI interaction. See this article for more information on that: http://undocumentedmatlab.com/blo...

4 years ago | 0

Answered
Matlab on Ubuntu 14.04
On Ubuntu you need sudo privileges to write to /usr. So either preface the install script with *sudo* or install to a directory...

4 years ago | 0

Answered
Indexing in for loop in order to remove non-zero and nan entries from vectors
The problem appears to be that your loop changes M into something with a single element on the first pass through, but then trie...

4 years ago | 0

Answered
Using calllib with a function that uses std::vector in its prototype
As mentioned, you can't really use calllib with most C++ code. However, you can use mex to build a MATLAB Executable (MEX) fu...

4 years ago | 1

Answered
SSD vs HDD Matlab
Like almost any performance question of this nature, the answer is "It Depends". Specifically it depends on what exactly your c...

4 years ago | 1

Answered
How to combine hours from a cell and minutes from another cell into one cell of Time ?
If you have a cell array with hours in the 1st cell and minutes in the 2nd cell, like so (for 5 hours and 23 minutes): C ...

4 years ago | 0

| accepted

Load more