Feeds
질문
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...
거의 10년 전 | 답변 수: 1 | 0
1
답변질문
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...
거의 10년 전 | 답변 수: 1 | 0
1
답변답변 있음
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]'); ...
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]'); ...
10년 초과 전 | 0
질문
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: ...
10년 초과 전 | 답변 수: 2 | 0
2
답변질문
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...
대략 11년 전 | 답변 수: 1 | 0
1
답변질문
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년 초과 전 | 답변 수: 1 | 0
1
답변질문
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년 초과 전 | 답변 수: 3 | 0
3
답변질문
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년 초과 전 | 답변 수: 2 | 0