Community Profile

photo

Jonathan Marchetto


19 total contributions since 2018

null

Jonathan Marchetto's Badges

  • Thankful Level 2
  • Solver

View details...

Contributions in
View by

Question


Weighted average between NaNs with movmean, determing window length?
I am trying to calculated a weighted average using movmean that takes the values between NaNs in a column of data. However, I th...

13 jours ago | 3 answers | 0

3

answers

Question


Interpreting xcorr results compared to corrcoef
I am having trouble understanding why I am getting different outputs when using coeff and a normalized xcorr, specifically at 0 ...

environ un mois ago | 1 answer | 0

1

answer

Question


Trouble understanding "Lags" for Cross Correlation
I've read through the help page for cross correlations but I'm still having trouble understanding what lags actually represent. ...

3 mois ago | 1 answer | 0

1

answer

Question


Conversion function taking a very long time to run in loop, anyway to improve?
I created a function that does a simple conversion to my data with two coordinates being the input (below) %% function [ GazeD...

6 mois ago | 2 answers | 0

2

answers

Question


Best way to loop through multiple subfolders and run either script A or B depending on folder name?
Here is my current folder/subfolder set up Study > Participant (1-24) > Experiment (A) and Experiment (B) > Session (1, 2, and ...

8 mois ago | 2 answers | 0

2

answers

Question


Unable to open file with Importdata after dir with subfolders?
I've used this simple code before with all of my files in one folder and it worked fine. However I've modified it by adding **...

8 mois ago | 1 answer | 0

1

answer

Question


Loop that names first 3 files one name and 2nd 3 files another.
Having a tough time doing something that is likely rather simple. I have a folder with files, lets say they are named AAA.XL...

10 mois ago | 1 answer | 0

1

answer

Question


Loop for storing files from sub-folders in new variables?
I have 10 folders, 1 for each of my participants. Each folder has 3 files per each trial, so trial 1 will have an A file, B fi...

11 mois ago | 1 answer | 0

1

answer

Solved


Make a checkerboard matrix
Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Examp...

environ un an ago

Solved


Add two numbers
Given a and b, return the sum a+b in c.

environ un an ago

Solved


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

environ un an ago

Solved


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

environ un an ago

Solved


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

environ un an ago

Question


For loop to correlate column 1 in variable 1 to column 2 in variable 2 and so on.
I have two variables (A and B) that store 3000x30 data points. I'm interested in creating a for loop that stores the correlati...

environ un an ago | 1 answer | 0

1

answer

Question


Trying to calculate variance in cells nested within a 1x9 cell
Currently I have a variable that is a 1x9 cell (lets call it X). Within X, there are a variety of different sized nested cells, ...

plus d'un an ago | 1 answer | 0

1

answer

Question


Creating a variable referencing specific cells from a cell variable with 30 structures?
I have a variable that I converted to a cell. This variable is a 1x30 cell with 30 structures within it. (I had multiple levels...

plus d'un an ago | 1 answer | 0

1

answer

Question


Trouble reading 6 excel files (with multiple sheets) and storing each excel as a its own matrix with my loop.
Here is my current code %My Code foldername = 'My Folder Path'; files = dir(fullfile(foldername, '*.xlsx')) for i = 1:le...

plus d'un an ago | 2 answers | 0

2

answers

Question


Creating a txt file with different types of data stored in each column?
I am trying to create a .txt file with the following data in this format. e 5.4 300+2i f 3.3 3+200i c 2.2 9.9+210i ...

plus d'un an ago | 1 answer | 0

1

answer

Question


Help with HW question regarding Sine waves
I may be greatly overthinking this, but I want to make sure since I am new to Matlab. The question requires me to create a si...

plus d'un an ago | 1 answer | 0

1

answer