# Andrew Reibold

### Purdue University

Last seen: 3 months ago Active since 2013

Followers: 0   Following: 0

Professional Interests: Aerospace Engineering

All

#### Feeds

View by

How to calculate max permanent flux linkage and rotor angle over which back emf is constant for a BLDC?
To simulate a BLDC motor control circuit in MATLAB, you'll need to understand and calculate certain parameters. The maximum flux...

4 months ago | 0

| accepted

How can I save axes data for recall without keeping the handle?
To achieve the desired behavior in MATLAB, you can follow these steps: Create a single figure with the initial plot. Allow the...

4 months ago | 0

Why is the relationship between Es/N0 and SNR different for complex and real signals
Your explanation is quite accurate, and your understanding is correct. The factor of 0.5 in the formula for real input signals i...

4 months ago | 0

OQPSK modulation / demodulation errors
It seems like there might be a couple of issues in your code. 1. BitInput/BitsPerSymbol Mismatch: You have set 'BitInput...

4 months ago | 0

Solved

Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

9 years ago

Question

Matlab Home License - New Computer?
If I purchase a Matlab Home, it says I can use it forever. I want to get a copy but my laptop is getting old and in the next y...

9 years ago | 1 answer | 0

### 1

Question

fft - Documentation Question - What is "L"?
Referring to this documentation http://www.mathworks.com/help/matlab/ref/fft.html What is L? L = 1000; ...

9 years ago | 1 answer | 0

### 1

The reason it is failing - Matlab does NOT accept ZERO indices. The very first value of x is x(1), not x(0). Your script calls f...

9 years ago | 0

creating new number from two numbers
Judging by your example, I believe you mean b *repeated* a times. Not a times b. Yes there is a command for that. repmat...

9 years ago | 0

| accepted

Count the time a toggle button is pressed down
I use *tic* and *toc* to start and stop timers >> help tic tic Start a stopwatch timer. tic and TOC functions wo...

9 years ago | 0

Question

Can you fold a highlighted selection of code?
I have enabled cell folding with the double percent signs, %%. I can click each individual +/- on the left hand side of my sc...

9 years ago | 1 answer | 3

### 1

Question

Is it possible to refresh a web page I opened with Matlab?
Example: I open a webpage using [stat,h] = web('www.cnn.com') and I need to refresh it every 10 seconds. Is there a comman...

9 years ago | 1 answer | 0

### 1

??? Undefined variable "handles" or class "handles.slider1". in Guide for a function
Notice in all the other functions you pass in *handles* which allows you to access the data inside slider1_Callback(hObject...

9 years ago | 0

| accepted

How to break with two conditions
Instead of *AND*, use *&&* if m(:,:,j) < 0 && m2m(:,:,j) < 0 'AND' will not work. Make that change and start debugging f...

9 years ago | 0

Looking to animate two lines with the angle between them changing?
Bro, If you are working with EMG signals you should really know how to do Highschool trig... haha :-) But anyway, here is an ...

9 years ago | 0

Replacing cells in a cell array/Dealing with AM and PM using datenum
I'm really confused as to why you have *Data{1,3}{i,1}* for the first assignment, and *Data{3,i}{i,1}* for the second one. Shou...

9 years ago | 0

Creating a table of values from for loops
_I apologize for posting this as a comment._ This will make a table of your values, without the labels on the sides. I guess ...

9 years ago | 0

Delete rows that have the first same value and keep one row in matrix with 2 colums?
This removes any rows where the value in the first column has already been used. [~,idx] = unique(x(:,1)); %which row...

9 years ago | 1

Modifying this code to make a cell array?
sizegroup=input('Enter number of students: '); for k = 1:sizegroup name=input('enter name: ', 's'); %read in name ...

9 years ago | 0

| accepted

overwriting certain lines in a matrix with previous lines that satisfy a condition.
This is not the most efficient memory-wise, but it is a working solution and I tried to use basic commands. I just made up a mat...

9 years ago | 0

Function outputs the top row of a matrix, need it to output whole matrix
You have a counter here, but its not actually in a loop. I'm guessing thats a mistake. Count only ever equals 1 during assig...

9 years ago | 0

quiver plot - need help to remove NaN
This solution removes the black dots! The reason it looked awful after removing NaNs is because instead of just taking the no...

9 years ago | 2

| accepted

Hi Marian, Maybe this can get you started. I made a textfile of the example you provided, and a sample code is attached to re...

9 years ago | 2

| accepted

Table header - possible to use special characters?
I don't know if it actually works: Try using sprintf to print what text you want

9 years ago | 0

How to have variables displayed in workspace after every while loop iteration?
Not sure if you are having issues with the worksplace, or if you are actually trying to say you are having trouble displaying va...

9 years ago | 0

How to output WHOLE vector in result?
You need to tell Matlab where to store both output arguments or it only gives the first one under the variable 'ans' by default ...

9 years ago | 3

Help with basic problem
steps_required = ceil(((B-.2)-A)/C) Explanation: Assuming you want to take the minimum amount of steps, the distance you MUS...

9 years ago | 0

Question

Is it possible to disable plot/figure generation in an entire script?
This is more of a trivial request, but it would be convenient for me if there was a setting I could change before running a scri...

9 years ago | 1 answer | 0