回答済み
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...

12年弱 前 | 1

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

12年弱 前 | 0

| 採用済み

回答済み
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...

12年弱 前 | 0

回答済み
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...

12年弱 前 | 0

| 採用済み

回答済み
Video formats in MATLAB
outputVideo = VideoWriter('myvideo.mp4','MPEG-4');

12年弱 前 | 0

回答済み
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...

12年弱 前 | 1

回答済み
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...

12年弱 前 | 0

| 採用済み

回答済み
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年弱 前 | 0