Doug

MathWorks

Active since 2015

Followers: 0   Following: 0

Message

Statistics

  • First Answer

View badges

Feeds

View by

Answered
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)

mer än 9 år ago | 1

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

mer än 9 år ago | 0

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

mer än 9 år ago | 0

Answered
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 ...

nästan 10 år ago | 3

Answered
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 = ...

nästan 10 år ago | 0