Community Profile

photo

Andrew Reibold


Purdue University

115 total contributions since 2013

Professional Interests: Aerospace Engineering

Contact

Andrew Reibold's Badges

  • First Review
  • 6 Month Streak
  • Thankful Level 2
  • Revival Level 2
  • Knowledgeable Level 3
  • First Answer
  • Solver

View details...

Contributions in
View by

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

oltre 5 anni 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...

oltre 5 anni ago | 1 answer | 0

1

answer

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

oltre 5 anni ago | 1 answer | 0

1

answer

Answered
break loop when answer is same as last answer
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...

circa 6 anni ago | 0

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

circa 6 anni ago | 0

| accepted

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

circa 6 anni 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...

circa 6 anni ago | 1 answer | 3

1

answer

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

circa 6 anni ago | 1 answer | 0

1

answer

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

circa 6 anni ago | 0

| accepted

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

circa 6 anni ago | 0

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

circa 6 anni ago | 0

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

circa 6 anni ago | 0

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

circa 6 anni ago | 0

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

circa 6 anni ago | 0

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

circa 6 anni ago | 0

| accepted

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

circa 6 anni ago | 0

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

circa 6 anni ago | 0

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

circa 6 anni ago | 2

| accepted

Answered
How to skip lines when reading a text file that start with specific input?
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...

circa 6 anni ago | 1

| accepted

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

circa 6 anni ago | 0

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

circa 6 anni ago | 0

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

circa 6 anni ago | 2

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

circa 6 anni 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...

circa 6 anni ago | 1 answer | 0

1

answer

Answered
how can i stop while loop immediately by a push button?
I think you need to make sure 'Interupt' is set to 'Enabled' or 'On' or something like that. Is it possible?

circa 6 anni ago | 0

Answered
Mathlab R2013a Student bug
Technical support from MathWorks is available for activation, installation, and bug-related issues http://www.mathworks.com/...

circa 6 anni ago | 0

Answered
How to disable automaticlly showing new plot
I think it will not bring it to the foreground if you set the figure visibility to 'off'. However, then you can't see it until y...

circa 6 anni ago | 0

Answered
mean of matrix elements
myMatrix = rand(5760,1) for jj = 1:576 moving_avg(jj,1) = mean(myMatrix(jj*10-9:jj*10)); end Will make a matri...

circa 6 anni ago | 1

Answered
I save a cellarry ,but the result looks like strange
Read the documentation... Haha "csvwrite does not accept cell arrays for the input matrix. To export cell arrays to a text ...

circa 6 anni ago | 0

Answered
how to find mean with nan
Use *nanmean* If you dont have it, I wrote this For an array, x n_nans = 0; temp = x; for i = 1:length(x...

circa 6 anni ago | 0

Load more