Answered
while a variable is true for a certain period of time
You could call the function c = clock; where c is [year month day hour minute seconds] before the loop and call it at...

11 years ago | 1

Answered
Run time of a code
You can use: tic ...your code toc and you'll obtain something like: Elapsed time is 0.04 seconds.

11 years ago | 0

| accepted

Answered
find indices of string matches from a cell array by thier endings
strcmp or strcmpi Example of how you could do it (not elegant but works): A={'aAbc' 'dgbc' 'bebd' 'fabc' 'fa '}; str...

11 years ago | 0

Answered
GUI: How to update the handles when calling a function Callback inside another Callback?
If I understand right, now you have something like: function callback_1() ...code 1 callback_2 guidata(hObject, ha...

11 years ago | 0

| accepted

Answered
Video formats in MATLAB
outputVideo = VideoWriter('myvideo.mp4','MPEG-4');

11 years ago | 0

Answered
Why are the 2 lines at the end so time consuming?
I don't know why it's slow on those line, but since you know the pieces of the final array, instead of calculating its dimension...

11 years ago | 1

Answered
won't run euler method
Is this what you were looking for? x=0; y=1; a=0; b=5; h=0.1; n=(b-a)/h; for i=1:n x(i)=a+(i...

11 years ago | 0

| accepted

Answered
Trying to plot a function with changing variables.
You are not returning any variables from the function mbk. Try: function [name_var_1,name_var_2] = mbk(m,k)

12 years ago | 0