Community Profile

photo

Mark


Active since 2012

Statistics

  • Thankful Level 3

View badges

Content Feed

View by

Question


Using the text from the excel data imported
I imported an Excel file with text. I named this data data_with_text. When I use >> word1=data_with_text(1,1) I get: ...

11 years ago | 2 answers | 0

2

answers

Question


Trying to do mesh in MatLab but get NaN ?
I am trying to execute the following code: T = 0:.1:12; e = -6:.1:6; [Ti,ei] = meshgrid(T,e); Qi = 1 + exp(-ei/Ti)...

11 years ago | 2 answers | 0

2

answers

Question


Drawing a sphere inside a sphere?
Is it possible to draw a sphere inside a sphere? I tried the following, but this covers the small sphere, despite the "mesh" ins...

11 years ago | 2 answers | 2

2

answers

Question


Labeling coordinates of points on a graph?
Is it possible to label plotted points, which I have in a table/matrix, on a graph? e.g. I have a table with 2 columns (for x...

11 years ago | 1 answer | 0

1

answer

Question


Why is the "state" important?
I am going through a code which uses 'state' in a line. What does 'state' do, and could it be of importance? I read that it "res...

11 years ago | 1 answer | 0

1

answer

Question


Creating an infinite loop until an event occurs?
I am trying to make a loop until a certain event happens. In my first drafts I simply let it run for a large number of steps. Ho...

12 years ago | 2 answers | 1

2

answers

Question


Solving a "result"?
After a series of calculations I solve for a variable but MatLab does not finish solving it. E.g. I finally solve for x and get ...

12 years ago | 1 answer | 0

1

answer

Question


Integrating and substituting
So I have a long code and now I want to differentiate a formula, y, with respect to x in and integral 0 to t. However, I want to...

12 years ago | 1 answer | 0

1

answer

Question


Replacing zeros with empty values?
Is it possible for matrices in matlab to replace zeros by empty values i.e. not even give a zero but have blank entries?

12 years ago | 1 answer | 0

1

answer

Question


Loop / Repeat if random number = 0
I have good and fun code and it is working very well. However, I am getting an error when I get zero (0) from my "random inte...

12 years ago | 1 answer | 0

1

answer

Question


How to create random vectors of the same lengths?
I am trying to get a random vector (2D) of the same length, say 'x'. I thought about creating a list of numbers -1 to 1 for x...

12 years ago | 1 answer | 0

1

answer

Question


Substitution after differentiation (easy)?
I am trying to substitute the variable x after differentiating y with respect to x. Any ideas on the final step? >> syms x; ...

12 years ago | 1 answer | 0

1

answer