Community Profile

# Todd Leonhardt

39 2016 年以降の合計貢献数

#### Todd Leonhardt's バッジ

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

| 採用済み

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...

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...

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...

| 採用済み

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...

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...

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 ...

Help projecting a vector onto another!

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...

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...

| 採用済み

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:...

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...

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...

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 ...

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...

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...

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 ...

### 1

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 ...

| 採用済み

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

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...

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...

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...

| 採用済み

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...

| 採用済み

Is there a way to control the action of an external program through MATLAB?

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...

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...

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...

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...

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 ...

| 採用済み