photo

James


University of Rochester

Aktiv seit 2013

Followers: 0   Following: 0

Nachricht

Statistik

All
  • Thankful Level 3
  • Solver

Abzeichen anzeigen

Feeds

Anzeigen nach

Frage


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

mehr als 9 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 9 Jahre vor | 1 Antwort | 0

1

Antwort

Beantwortet
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]'); ...

etwa 10 Jahre vor | 0

Frage


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

etwa 10 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


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

fast 11 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

etwa 11 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

etwa 11 Jahre vor | 3 Antworten | 0

3

Antworten

Frage


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

etwa 11 Jahre vor | 2 Antworten | 0

2

Antworten