Community Profile

photo

Kelsey


University of Notre Dame

Active since 2013

Followers: 0   Following: 0

Message

Statistics

  • Thankful Level 1

View badges

Feeds

View by

Question


How to get rid of zeros in data?
I am plotting Efficiency vs. Acceleration. The formula for Efficiency is only valid if the vehicle is accelerating. Therefore,...

9 years ago | 1 answer | 0

1

answer

Question


How to only have user select data file if workspace is empty?
I have a generic code that calculates things based off of the data file that the user selects and loads into the Matlab Workspa...

9 years ago | 1 answer | 0

1

answer

Question


Why isn't this if statement nested in a for loop working?
I am trying to use fuel consumption, velocity, and time data from a real-world drive cycle to calculate the fuel consumed during...

10 years ago | 1 answer | 0

1

answer

Answered
How to sum the fuel consumed at idle (vehicle speed=0)?
This code seems to come close: IdleFuelIndex = find(VSPD == 0); %(find indexes where VSPD=0) IdleFuel = 0; ...

10 years ago | 0

Question


How to sum the fuel consumed at idle (vehicle speed=0)?
I have some vectors of data for time, vehicle fuel consumption, and vehicle speed for a certain driving trip. I am confused abo...

10 years ago | 2 answers | 0

2

answers

Question


How to interpolate any vectors whose lengths don't match the time vector?
Here is my code (which doesn't seem to work): names = fieldnames(dataATI); if length(names)>length(time) names = ...

10 years ago | 1 answer | 0

1

answer

Question


Computing derivative using "for" loop--why am I getting this error?
Below is my code (note that in reality the vectors are much longer, but I simplified them to 5 entries of fake data...you get th...

10 years ago | 1 answer | 0

1

answer

Question


How does Simulink recognize variables from an m-file?
I am trying to run a .slx file named train.slx from the Simulink window, and have it use variables defined in a .m file (named s...

10 years ago | 1 answer | 0

1

answer

Question


Error using plot--vectors must be the same lengths?
Why am I getting the error message, "Error using plot Vectors must be the same lengths"? This code worked fine before I added a ...

10 years ago | 2 answers | 0

2

answers

Question


Simulink help -- PID Control for a robot arm?
<< <</matlabcentral/answers/uploaded_files/10386/diffeq1.png>> >> I need to use Simulink to determine an approximate nu...

10 years ago | 1 answer | 0

1

answer

Question


Need help using num2str?
I am trying to display the sentence: The approximate work done is {W} kJ. (Where W is the calculated work variable) How ca...

10 years ago | 1 answer | 0

1

answer

Question


Can someone run this simple code for me? Matlab isn't converging to a solution on my computer...
A = [0 1 0 0; 1 .15 -2 -.05; 0 0 0 1; -1 -.025 -.5 -.075] t = sym('t') expm(A*t) Thanks in advance! Apparently it sho...

10 years ago | 1 answer | 0

1

answer

Question


How to increment a for loop by an arbitrary value?
I am creating a Matlab program that calculates corresponding temperatures for Celsius, Kelvin, Fahrenheit, and Rankine scales. I...

10 years ago | 1 answer | 0

1

answer

Question


How to plot a function in the complex plane?
How would I plot the function F = R*exp(i*theta) where F, R, and theta are functions of w, and i is an imaginary number? I...

10 years ago | 1 answer | 1

1

answer

Question


Error message when using plot command: "Subscript indices must either be real positive integers or logicals"
I am having an issue when I run this code: x = linspace(0,1,7); yprimeexact = -2*x.*exp(-x.^2); yprimeapprox = [-1.32...

10 years ago | 2 answers | 4

2

answers

Question


How to plot selective data?
I have some data in the following form, outputted from a different computer program: <<http://oi43.tinypic.com/346rmys.jpg>>...

10 years ago | 2 answers | 0

2

answers

Answered
"Slider control can not have a Value outside of Min/Max Range"
Well here's the same basic function, altered for my GUI: function TriadF(handles) % TriadF.m % Play a music...

11 years ago | 0

Question


"Slider control can not have a Value outside of Min/Max Range"
I am getting this error for a code that I know is correct and should work. Why am I getting this? Here is the code: funct...

11 years ago | 2 answers | 0

2

answers

Question


Is it possible to connect 2 functions to a single Callback in a GUI?
For instance, I created a slider with which the user inputs a value for x. If this x value is used in two separate functions tha...

11 years ago | 0 answers | 0

0

answers

Question


Need to graph integral on GUI?
I'm creating a GUI that graphs the integral of a function, and allows the user to choose the left and right bounds on the x axis...

11 years ago | 0 answers | 0

0

answers

Question


Rock, Paper, Scissors GUI?
I am creating a GUI based on a script that generates a rock, paper, or scissors input, compares it to the user's input, then sta...

11 years ago | 1 answer | 0

1

answer