Question

How can I change the slope of a polynomial, with a constraint between 2 points?

Hi, I have a 3rd degree polynomial, shown as the blue curve below. <</matlabcentral/answers/uploaded_files/73433/untitled...

mer än 3 år ago | 0 answers | 0

Question

How can I reconstruct a matrix from rotated vectors?

Hi, I have vectors which are diameters (at different angles) from a circular surface. Knowing the angles of the individual vecto...

mer än 3 år ago | 2 answers | 0

Question

How to build a circularly symmetric matrix from a vector

Hi, If I want a matrix, like one used to generate the figure below: <</matlabcentral/answers/uploaded_files/56552/untitle...

nästan 4 år ago | 0 answers | 0

Question

Can surf or plot3 be modified to vary in x or y but not z?

Hi all, If I generate a grid, e.g.: x = [1:11]; z = ones(length(x)); surf(z) xlabel('X');set(get(gca,'xlabel'),...

ungefär 4 år ago | 1 answer | 0

Question

RMS of matrices in a cell or array

Hi all, If I have an n x n matrix, P, I find the rms by RMS_P = sqrt(mean(Prv(:).^2));. Please, how can I find the rms of ...

mer än 4 år ago | 1 answer | 0

Question

pinv of a singular matrix

Hi, I'm trying to solve for x in: Ax=b, but my A matrix is singular. An example of the A matrix is -1 0 0 1 0 0 0 0 -...

mer än 4 år ago | 2 answers | 0

Question

How can I shift and repeat an element within a matrix?

Hi all, Please, what's a neat way to build a matrix like this: 0 0 1 0 0 0; 0 1 0 0 0 0; 1 0 0 0 0 0; 0 1 0 0 0 0...

mer än 4 år ago | 2 answers | 0

Question

Can ZernikeCalc function be modified to create off-axis Zernikes?

I've been using the ZernikeCalc function to generate Zernike surfaces. I'm wondering, can I generate off-axis surfaces with this...

nästan 5 år ago | 0 answers | 0

Question

Creating a super diagonal matrix.

Please what's a neat way of creating a matrix that looks like this? [1 2 3 4 5 0 0 0 0 0; 0 1 2 3 4 5 0 0 0 0; 0 0 1 2 3 4 ...

nästan 5 år ago | 1 answer | 0

Question

How can I integrate select parts of a vector, with a constant step size?

If I have a vector, say, v = [1:1:20], and I want the first term of the cumtrapz(v) to work on [v(1) v(11)], the second term to ...

ungefär 5 år ago | 0 answers | 0

Question

How can I generate a rotationally invariant surface from a profile?

I have a vector, e.g. V = [1 2 3 4 3 2 1], that represents a profile through the center of a rotationally invariant surface. I'm...

ungefär 5 år ago | 1 answer | 0