photo

Peter Kövesdi


Last seen: 7 months ago Active since 2016

Followers: 0   Following: 0

Message

Statistics

All
  • Revival Level 1
  • First Submission
  • First Answer

View badges

Feeds

View by

Answered
convert a range vector of bin centers to bin edges. Bin Centers and edges are non-uniform
Ok, I come up with this solution: binedges = zeros(size(binmids)); binedges(1)=2*binmids(1); for i=2:length(binmids) bin...

8 months ago | 0

Answered
Pass ByRef Array / safearray to COM server
Ahh, finally, I got it! It's a combination of two things: - I have to set `feature('COM_SafeArraySingleDim',1)` as described h...

10 months ago | 0

Question


Pass ByRef Array / safearray to COM server
I have a COM object named "objPoints3d" and want to call it from Matlab. What is the matlab equivalent to pass an array? I try t...

10 months ago | 1 answer | 0

1

answer

Answered
How do I split a time series?
Another option is: plot(getsamples(timeseries,ind)) where ind is the index of the samples you want.

5 years ago | 0

Answered
How can I find the center of gravity of a machine in SimMechanics 3.1.1 (R2009b)?
Is there any update to this? In Matlab 2017b, not even the command h=find_system(gcs,'ClassName','Body') works any more.

5 years ago | 0

Answered
linkaxes with different x scales
Adams solution works well, but fails on 'Restore View' from the context menu in zoom or pan mode. To get the axes synchronized ...

5 years ago | 1

Answered
How to find the index of the closest value to some number in 1D array ?
ind = interp1(x,1:length(x),val,'nearest'); also does it. But a short comparison shows disadvantages in timing: f1=@()interp1...

5 years ago | 6