질문


Polynomial arrays intersection and area within intersection
Hello, I don't understand what is meant by polynomial array. I am wondering if it is as simple as what I wrote. For part 2...

11년 초과 전 | 답변 수: 2 | 0

2

답변

질문


Break Points without a function
Can you use break points to debug code that is not a function? I just want to see how a block of code that I wrote is behaving, ...

11년 초과 전 | 답변 수: 1 | 0

1

답변

질문


For loop with the loop variable equal to a matrix
Hello, this block of code was given on a previous exam M = [1 3 -2; 7 -5 1]; temp = 0; for k = M temp = temp +...

11년 초과 전 | 답변 수: 2 | 0

2

답변

질문


output of indices column or row vector
A = [5 6]; EDU>> B = [3;4]; EDU>> C = 3; EDU>> B(2) = 2; EDU>> B(:,2) = A' B = 3 5 ...

11년 초과 전 | 답변 수: 3 | 0

3

답변

질문


Function with subfunction inside
The function func takes any real array A as input and outputs an array B of equal size, whose entries are equal to twice the co...

11년 초과 전 | 답변 수: 1 | 0

1

답변

질문


Cell Array indexing and manipulating
The following code is entered in the command window: A = {'Cal', 'Golden', 'Bears', [5 7], {[1 2 3 4]}}; Enter a single-...

11년 초과 전 | 답변 수: 2 | 0

2

답변

질문


Bisection method with array at end points
The function bisectEW7 should first check if either xL or xR satisfies the stopping criterion specified by fTol. If one (or bot...

11년 초과 전 | 답변 수: 1 | 0

1

답변

질문


fzero function calculating all zeros within interval
Hello, I was thinking about the function fzero. If you have a function that has multiple roots within an interval of your cho...

11년 초과 전 | 답변 수: 3 | 0

3

답변

질문


choosing locations in an image to take pixels
Hello, If I take an image and I want to do an average of the pixels across the entire image, how do I do that? Right now when...

11년 초과 전 | 답변 수: 1 | 0

1

답변

질문


Maximum error in not-a-knot spline of bessel function
The syntax is as follows: If Xdata and Ydata are vectors with the same number of elements, then four various splines can be crea...

11년 초과 전 | 답변 수: 0 | 0

0

답변

질문


cell array manipulation with string
Write a line of MATLAB code that uses the cell array A to generate the string 'Cal Golden Bears' A = {'Cal', 'Golden', ...

11년 초과 전 | 답변 수: 1 | 0

1

답변

질문


linear program with multiple vector norms in one function
n the previous few modules you studied the problem of minimizing ∥Ax−b∥2 by choice of x. So far you've done this in Matlab usin...

11년 초과 전 | 답변 수: 0 | 0

0

답변

답변 있음
Repeating matrix multiplication linear system
Here is the code e = 2000; l = 100; a = 25; x = [e; l; a]; PopulationInfo = A*x; for t = 1:50 Popul...

11년 초과 전 | 0

질문


Repeating matrix multiplication linear system
Hello, I am trying to do a matrix multiplication with a loop, I have a matrix A A = 0 0 ...

11년 초과 전 | 답변 수: 3 | 0

3

답변

질문


Appending to the field of a structure array
Hello, I am trying to create a word index. I start off with an empty cell array with 3 fields: Word, Documents, and Locations. F...

11년 초과 전 | 답변 수: 2 | 0

2

답변

질문


Cell Array referencing question
Hello, Suppose I have A = {1 2} A = [1] [2] and B = {[1 2]} B = [1...

11년 초과 전 | 답변 수: 2 | 0

2

답변

질문


Creating a Word Index Structure Array
I am working on problem 2 in the attached PDF. When I run this right now, I get an error in my first conditional for if the word...

11년 초과 전 | 답변 수: 1 | 0

1

답변

질문


orienting position of command window, figure plot window, etc
Hello, How do I change the orientation of my various windows within matlab. Right now my command window is on the bottom and ...

11년 초과 전 | 답변 수: 1 | 1

1

답변

질문


function handle and Subfunction in the command window
Hello, I am working on this quiz question and I don't really understand how this code is working. I have the code attached as...

11년 초과 전 | 답변 수: 1 | 0

1

답변

질문


User defined function encryption
Hello, I am working on problem 2 in the attached PDF. I am trying to understand what they are saying in (b) as far as creatin...

11년 초과 전 | 답변 수: 0 | 0

0

답변

질문


using while-end block to find pattern in an array
Write code using a while loop that will assign to the variable numOccursSep the number of times a certain pattern of 0's and 1'...

11년 초과 전 | 답변 수: 2 | 0

2

답변

질문


counting number of times commadn executed in while loop
Hello, I am working on a problem where I need to know how many years it would take for interest being compounded annually to...

11년 초과 전 | 답변 수: 1 | 0

1

답변

질문


loops misunderstanding code statement
num = 0; L= randperm(10); for k = L while L(k)<4 num = num + 1; L(k) = L(k)+1; end...

11년 초과 전 | 답변 수: 1 | 0

1

답변

질문


finding mean scores of students tests compared to rest of class
Hello, I am working on this problem. To give you some context, there is an 150x10 array of test scores ranging from 1-10. sNum i...

11년 초과 전 | 답변 수: 2 | 0

2

답변

질문


Finding indices of array that has a constraint
Hello I have an array with a set of constraints imposed, and I want to know the single indices of all elements that meet the ...

11년 초과 전 | 답변 수: 1 | 0

1

답변

질문


xor equivalent with AND OR logic
Which of the following expressions is equivalent to the following function? xor(A,B) (A & B) & (A | B) (A | B) | ~(A & B)...

11년 초과 전 | 답변 수: 2 | 0

2

답변

질문


logical statements of an array
Given A = [2, 4, 6, 8, 10]; I don't understand what this command is actually doing A(logical([0, 0, 1, 1, 1])) This is ...

11년 초과 전 | 답변 수: 3 | 0

3

답변

질문


inserting row into an array
Hello, I am trying to figure out what command I can use to add a row into an array by referencing that array. An example,...

11년 초과 전 | 답변 수: 1 | 0

1

답변