Community Profile

photo

Andrew Lackey


Last seen: environ 2 mois ago Active since 2021

Statistics

  • Thankful Level 2

View badges

Content Feed

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

2 mois 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 = ...

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

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

2 mois 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 mois 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 mois ago | 1 answer | 0

1

answer