Question

Change transparency but only in part of a kernel (i.e. different contrast bands)?

I'm using Matlabs sample code to generate Gabor kernels (shown below). I want to be able to manipulate the transperancy of the...

3 mois ago | 0 answers | 0

Question

Help with creating an image like this? (Letter E with flanks and Gabor filter)

I'm trying to create image like some of those attached below (picture titled Gabor Es), but I'm having a lot of difficulty. My...

3 mois ago | 0 answers | 0

Question

Extract rows from cell array based on two values in two columns and reassign them to a new variable

So I have a clunky problem I have trying to solve (as seen by the title). Essentially I have a very large Excel file and I nee...

environ un an ago | 0 answers | 0

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

environ un an ago | 3 answers | 0

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

plus d'un an ago | 1 answer | 1

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

plus d'un an ago | 1 answer | 0

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

plus d'un an ago | 2 answers | 0

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

presque 2 ans ago | 2 answers | 0

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

presque 2 ans ago | 1 answer | 0

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

environ 2 ans ago | 1 answer | 0

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

environ 2 ans ago | 1 answer | 0

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

plus de 2 ans 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 ...

plus de 2 ans 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...

plus de 2 ans 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:...

plus de 2 ans 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...

plus de 2 ans ago | 1 answer | 0

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 de 2 ans ago | 1 answer | 0

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 de 2 ans ago | 1 answer | 0

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 de 2 ans ago | 2 answers | 0

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

presque 3 ans ago | 1 answer | 0

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

presque 3 ans ago | 1 answer | 0