photo

Kristen O'Mara


Last seen: 2 years ago Active since 2018

Followers: 0   Following: 0

Statistics

  • Thankful Level 2
  • Thankful Level 1

View badges

Feeds

View by

Question


Why am I getting a parse error at the logical operator &&?
For some reason I am getting a parse error at && which will not allow my code to run. function [nucleotides] = BMEactivity(m...

6 years ago | 2 answers | 0

2

answers

Question


How to insert an image in a GUI and have it move according to a small moving matrix's location
I am creating a code for a class that requires a spaceship to move throughout space (a matrix). We have created randomly spawnin...

6 years ago | 0 answers | 0

0

answers

Question


How to set the minimum value of an array to a negative number?
I made a 1x50 random array and I need to find the max and set it equal to 100 and find the min and set equal to -100. Then I nee...

6 years ago | 1 answer | 0

1

answer

Question


Can I use whether or not a function runs as a conditional statement?
I need some commands to execute if a pushbutton is pressed while certain other conditions are true. How can I write in a conditi...

6 years ago | 1 answer | 0

1

answer

Question


Can I use a function as a conditional statement?
I'm working with my first GUI using the guide and I need to make a GUI with two pushbuttons. When pushbutton 1 is pressed, pushb...

6 years ago | 0 answers | 0

0

answers

Question


How to make a for loop that sums all the odd values in the array?
I need to make a for loop that sums all the odd values in an array from 1 to userNum. This is what I have so far: function...

6 years ago | 2 answers | 0

2

answers

Answered
Why is my function giving me the wrong output?
Thanks everyone, I fixed the issue. I needed to change the line medianValue to medianValue = (array(medianIndex1) + ar...

6 years ago | 0

Question


Why is my function giving me the wrong output?
I was asked to write a function finding median and mean of an array without using the built in functions or the sum function. I ...

6 years ago | 2 answers | 0

2

answers

Question


How to use any size array as an input?
I need to make a function that calculates the median and mean values of an array. I'm not sure how to use an array as an input w...

6 years ago | 2 answers | 0

2

answers

Question


Why is my function giving me a string when it should be giving a structure?
We are asked to write a function 'carGenerator' that takes 5 inputs and uses conditional statements to determine if a car is val...

6 years ago | 1 answer | 0

1

answer

Answered
Why is my function giving me a string when I should get a structure?
"data type char" = string and "data type struct" = structure So the car is being told it's invalid when it is valid and shoul...

6 years ago | 0

Answered
Why is my function giving me a string when I should get a structure?
The thing is I need that string because they give us two examples of a bad car with inputs that will cause the output to be the ...

6 years ago | 0

Question


Why is my function giving me a string when I should get a structure?
We are asked to write a function 'carGenerator' that takes 5 inputs and uses conditional statements to determine if a car is val...

6 years ago | 3 answers | 0

3

answers

Question


Not quite sure what I'm doing wrong for this calculator function problem
I have a project where I need to make a calculator that takes two input numbers and performs the operation (chosen by the user) ...

6 years ago | 1 answer | 0

1

answer