Doug

MathWorks

Attivo dal 2015

Followers: 0   Following: 0

Messaggio

Statistica

  • First Answer

Visualizza badge

Feeds

Visto da

Risposto
Intersect 2 arrays to find a position
I'm not sure if I'm clear on the question, but is this what you have in mind?: V(hour+Minute/60 >= 8.75)

oltre 9 anni fa | 1

Risposto
How to put cell array in sprintf?
mycell = {1,2,3,4,5}; s = sprintf('%d%d%d%d%d', mycell{:})

oltre 9 anni fa | 0

Risposto
Deleting runs of zeros
a = [1 5;2 7;3 0;4 0;5 0;6 3]; i = a(:,2)~=0; a = a(i,:);

oltre 9 anni fa | 0

Risposto
Trying to use 'parfor', but it is very slow
You're not doing enough work in the parfor loop. Since there is an overhead associated with parfor, you have to perform enough ...

quasi 10 anni fa | 3

Risposto
How to put together variables(matrix, vector etc..) with different type of size.
robot_state = struct('position',{'top','bottom'}, 'velocity',{10,20}, 'acceleration',{0.1,0.3}); >> robot_state(2) ans = ...

quasi 10 anni fa | 0