Community Profile

photo

Brett Baxter


Last seen: 16 days ago
9 total contributions since 2020

Brett Baxter's Badges

  • Thankful Level 2

View details...

Contributions in
View by

Question


How to access data in structures?
I'm currently learning how to use structures in MATLAB and I'm finding it a little more confusing than cells and other regular a...

2 months ago | 1 answer | 0

1

answer

Question


How to extract before and after a character up to a certain limit?
Hey everyone, I'm playing around with extractBefore and extractAfter and I was wondering if I could get Matlab to extract everyt...

2 months ago | 3 answers | 0

3

answers

Question


Is there a way to assign a value to an input string?
I was wondering if there was a way to assign a second value to an input that would actually be used in the function instead of t...

2 months ago | 0 answers | 0

0

answers

Question


How to find what number is missing from a range inside of an array?
I wanted to know if there was anyway to get matlab to tell me what number was missing from an array of numbers? Kind of like a s...

2 months ago | 1 answer | 0

1

answer

Question


How do I swap the elements in the major diagonal with those in the minor diagonal?
So let's assume I have an array like so x = 4x5 array [1 2 3 4 5 6 7 8 9 1 2 3 4 5 6 7 8 9 1 2] What I want to do is...

2 months ago | 3 answers | 0

3

answers

Question


How to reshape an array horizontally
I wanted to know how to go about reshaping a character array horizontally, starting from the first index in the first row, and t...

2 months ago | 2 answers | 0

2

answers

Question


How to subtract from a vector, have it return a value of zero if the answer is less than zero, and then tell me how much was subtracted?
I essentially need to write a function like this: x=[1, 2 3] y= 2 x(1) - y if x(1)<0 totalsubtracted = y +x(1) x(1)=0 ...

3 months ago | 1 answer | 0

1

answer

Question


How to subtract from a vector array and, if the answer is lees than 0, have it return a value of 0
I'm trying to subtract a number from a specific value in a vector. Then, if the answer is less than 0, I want it to return the a...

3 months ago | 2 answers | 0

2

answers

Question


How to enter multiple values for a single input in a function
So what I'm trying to do is have a function take in a vector of inputs, and then use them seperately in a function. So the funct...

3 months ago | 1 answer | 0

1

answer