Community Profile

photo

Matthew Crema


Active since 2013

Followers: 0   Following: 0

Message

Statistics

  • First Review
  • Thankful Level 1
  • Knowledgeable Level 1
  • First Answer

View badges

Feeds

View by

Question


Converting a cell array of dissimilar structs to an array of structs
In R2013b, say I have an cell array of structs like the following % Some Mock Data data{1} = struct('day', 'Monday', 'Te...

9 years ago | 1 answer | 0

1

answer

Answered
Create a shortcut to a file in a script
To create a folder if it does not exist: if ~exist(foldername,'dir') mkdir(foldername) end To create a shortcut y...

10 years ago | 0

Answered
How do I create a vector of the average of consecutive elements of another vector (without using a loop)?
One way: A=[2 4 6 8 10]; foo = conv([1 1], A)/2; B = foo(2:end-1) B = 3 5 7 9 -Matt...

10 years ago | 1

Answered
Integration of pwelch output and comparing it with the variance of a signal
It seems to me that the equality you are assuming is var(y) == int(pyr*deltaf) And I agree, this should be correct. However ...

10 years ago | 0

Answered
What is wrong with the angle???
Maybe you want to specify Beta in radians and not degrees: BeltForce(100, 0.3, 130*pi/180) ans = 197.5217

10 years ago | 1

| accepted