Community Profile

photo

valdal


Active since 2015

Followers: 0   Following: 0

Message

Statistics

  • Knowledgeable Level 2
  • First Answer

View badges

Feeds

View by

Answered
Resizing pre-allocated vector of zeros using while and if terms?
You can try something like : n = 100; x = zeros(n,1); x(1) = 1; x(2) = 2; for i = 2:n-1 x(i...

8 years ago | 0

| accepted

Answered
How do I prevent two simultaneous key presses from tabbing away from my GUI?
With KeyPressFcn and guidata : h = uicontrol(...); escape = false guidata(h,escape) set(h, 'KeyPressFcn', @ke...

8 years ago | 0

Answered
why does size() not work in function but does in workspace
Hi, On my computer, I don't have any problem : fileList = cell(4,2) fileList{2,1} = rand(9,1) size(fileList)...

8 years ago | 0

Answered
how to change from one directory to another
Hello Ogheneochuko, You can use the function 'cd' and the double dot to go to the parent directory : cd .. or ...

8 years ago | 1

| accepted

Answered
Does Matlab uses the same seed generated by the main function for the functions that are called by that function? Results changed!!
Yes, you can save the state of the random generator at any point. In your case, you can save the generator just before callin...

8 years ago | 0

| accepted