photo

James


University of Rochester

Active since 2013

Followers: 0   Following: 0

Message

Statistics

All
  • Thankful Level 3
  • Solver

View badges

Feeds

View by

Question


Summing elements of a vector sequentially?
Is there a function that will sum a vector in the following way? Let x be a 1 x N vector. The ith element of the output vecto...

9 years ago | 1 answer | 0

1

answer

Question


Simple way to outline perimeter of grid using indexing.
Given, say, a 4 by 4 grid, is there an easy way to outline various contiguous subsets of the grid? In other words, if I sta...

9 years ago | 1 answer | 0

1

answer

Answered
Using sscanf (or equivalent) to extract double from string.
Well, this seems to work. Elegance is overrated, right? aha name = '2.3A 4B C'; letterIndex = regexp(name,'[A-Z]'); ...

9 years ago | 0

Question


Using sscanf (or equivalent) to extract double from string.
Let's say I have a string as follows: string = '2.3A 4B C' I want to apply a function that will output the following: ...

9 years ago | 2 answers | 0

2

answers

Question


Trouble with function using variable inputs.
Hello, I am fairly new to Matlab and am having a little difficulty using the "varargin" statement. I am trying to create a fu...

10 years ago | 1 answer | 0

1

answer

Question


How to make certain elements of a matrix equal to one?
For example, if I had: x = zeros(1,100) and I wanted to make the 3rd, 5th, 67th, and 93rd element equal to one, how could ...

11 years ago | 1 answer | 0

1

answer

Question


Is there an equivalent function to the "kron(x,y)" that uses subtraction as its operation rather than multiplication?
For example, say we have two matrices as follows: >> A = [1 2;3 4] A = 1 2 3 4 ...

11 years ago | 3 answers | 0

3

answers

Question


How to use a loop to calculate m*n values for an mxn matrix?
I have two matrices, both approximately 100x100, call them A and B. I am trying to multiply every element of matrix A by every ...

11 years ago | 2 answers | 0

2

answers