photo

Andrew Lackey


Last seen: 3 years ago Active since 2021

Followers: 0   Following: 0

Statistics

  • Thankful Level 3

View badges

Feeds

View by

Question


How to change variable value for every iteration in a for loop?
I have an equation within a for loop that uses multiple variables. All of the variables (except for variable a) are given in a t...

3 years ago | 1 answer | 0

1

answer

Question


How to set a column vector as a legend name within multiple plots?
I have a for loop that creates a figure with 5 plots. I am trying to set a legend so that each plot says "A = 0", "A = 4", "A = ...

3 years ago | 1 answer | 0

1

answer

Question


How to loop through multiple text files and make plot for each one in a single script?
I have 5 text files that have the same exact variables and column formats. The txt. files are named a1.txt, a2.txt, etc. I have ...

3 years ago | 1 answer | 0

1

answer

Question


How to make a variable negative if another variable is negative?
I have two columns (X & Y) full of numbers 200 numbers in a text file. All values of X are positive, while the values of Y are...

3 years ago | 1 answer | 0

1

answer

Question


How to store a new variable based on a range from another column?
I have a .txt file with 2 columns (X,Y). I would like to create a variable that represents a range of Y, but have that range b...

3 years ago | 1 answer | 0

1

answer

Question


How to add consecutive numbers from a column in a .txt file?
I am trying to add consecutive elements in a column and then print the new column. For example the column: [1 1 8 2 3 1] ...

3 years ago | 1 answer | 0

1

answer