문제를 풀었습니다


Find all elements less than 0 or greater than 10 and replace them with NaN
Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

11년 초과 전

문제를 풀었습니다


Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

11년 초과 전

문제를 풀었습니다


Column Removal
Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; and ...

11년 초과 전

문제를 풀었습니다


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

11년 초과 전

문제를 풀었습니다


Sort a list of complex numbers based on far they are from the origin.
Given a list of complex numbers z, return a list zSorted such that the numbers that are farthest from the origin (0+0i) appear f...

11년 초과 전

문제를 풀었습니다


Find the numeric mean of the prime numbers in a matrix.
There will always be at least one prime in the matrix. Example: Input in = [ 8 3 5 9 ] Output out is 4...

11년 초과 전

문제를 풀었습니다


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

11년 초과 전

문제를 풀었습니다


Make a checkerboard matrix
Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Example...

11년 초과 전

문제를 풀었습니다


Triangle Numbers
Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...

11년 초과 전

문제를 풀었습니다


Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

11년 초과 전

문제를 풀었습니다


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

11년 초과 전

답변 있음
Check for existence of mat-file in search path
Always too fast to ask. Seems like just adding the extension works fine, e.g. exist('mandrill.mat') returns 2. See comment fi...

거의 12년 전 | 2

| 수락됨

질문


Check for existence of mat-file in search path
Just came over an "interesting" problem. If I run |exist('mandrill','file')|, I get false back, which I normally would interpret...

거의 12년 전 | 답변 수: 1 | 1

1

답변

질문


Possible to "expand" function handle?
I've written a function that returns a function handle to a Lagrange polynomial L(x): function L = lagrange(xv,yv) % m...

대략 12년 전 | 답변 수: 1 | 0

1

답변

답변 있음
Using IVI-COM IviRfSigGen to generate an ARB signal
Which VSG from Agilent do you use? If you have the instrument control toolbox in Matlab, controlling the instrument thru a GPIB ...

12년 초과 전 | 0

답변 있음
Sort cell array with numeric data by values of first index in matrix
Managed to figure it out: firstIdx = cellfun(@(x)x(1,1),Cn); [dummy,order] = sort(firstIdx); Cns = Cn(order);

12년 초과 전 | 1

| 수락됨

질문


Sort cell array with numeric data by values of first index in matrix
Hello, I got a set of contour data obtained by [C h] = contour(X,Y,Z) which I want to split into a cell array and sort with r...

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

1

답변

질문


Contour plot in Smith chart - how to do it?
I got a set of measured load-pull (LP) data from an amplifier, which I'd like to plot as contours in the Smith chart (an example...

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

1

답변

질문


Read string and data (double matrix) of uknown size from file "efficiently"
I'm working with converting a piece of Scilab code to MATLAB, where I want to process data in some text files that I got. The co...

거의 13년 전 | 답변 수: 1 | 1

1

답변

질문


How to decide if a plot is surf or mesh based on graphics handle data?
Lets say I have a 3D plot which I want to export to another format, can I in any way tell if the plot is a surface, or a mesh by...

거의 13년 전 | 답변 수: 1 | 0

1

답변

질문


Get current colormap used on i.e. surfaceplot as string
Is there any way that I can get the current colormap of i.e. a surface plot returned as a string? If I have a plot, e.g. x...

거의 13년 전 | 답변 수: 1 | 0

1

답변

답변 있음
Writing MEX code for LMS filter: some difficulties with my implementation
I found the error; wi[m] = wi[m]+2*mu*(er[n]*xti[n]-ei[n]*xtr[m]); /* should be wi[m] = wi[m]+2*mu*(er[n]*xti[m]-ei...

거의 13년 전 | 0

| 수락됨

질문


Writing MEX code for LMS filter: some difficulties with my implementation
I'm trying to implement a MEX function for a LMS filter (which I've already implemented in MATLAB (*.m)) in order to improve my ...

거의 13년 전 | 답변 수: 1 | 0

1

답변

답변 있음
Evolution of coefficients of adaptive LMS filter
Quickly written based on LMS algorithm at Wikipedia (which I think originate from Haykin's "Adaptive Filter Theory 4th Ed.") ...

거의 13년 전 | 1

답변 있음
Save a file with own extension in menu GUI
Something like this? [filename pathname] = uiputfile('*.sin','Save file as'); save(fullfile(pathname,filename),'varname','-...

거의 13년 전 | 0

| 수락됨

답변 있음
export figure with textures and colors ...
Not sure if this will solve it, but have you tried changing the rendering? http://www.mathworks.com/help/techdoc/creating_plo...

거의 13년 전 | 0