Community Profile

photo

John


Active since 2014

Statistics

  • Thankful Level 1

View badges

Content Feed

View by

Question


Using strings as variable names in a for loop
What I would like to do is: K2006=20; k2007=30; years={'2006','2007'} for i = 1:2 mystr=strcat('K',years{i}...

8 years ago | 2 answers | 0

2

answers

Question


How do I add a string to a cell?
I have a 1x4 cell array containing strings, that I got using [num,txt]=xlsread(...). Now I would like to add another string, so...

8 years ago | 2 answers | 0

2

answers

Question


Saving variables to file with desired precision
Suppose I want to save the value of a variable, say sqrt(2), to a file, keeping a given number of digits, for example 30 digits,...

10 years ago | 1 answer | 0

1

answer