Answered
how do i crop an image using its matrix data?
It's a bit hard to tell what exactly needs to be done without you defining your need in a more detailed way. Do you want to only...

13 years ago | 0

| accepted

Solved


Is there a GPU Device?
Return true if there is a supported GPU device available on the Cody computer.

13 years ago

Solved


Average of square wave
given positive and negative peak , calculate dc level, 50% duty cycle

13 years ago

Solved


calculate RMS voltage
given peak to peak voltage, calculate rms voltage

13 years ago

Solved


Negative matrix
Change the sign of all elements in given matrix.

13 years ago

Solved


Find the maximum number of decimal places in a set of numbers
Given a vector or matrix of values, calculate the maximum number of decimal places within the input. Trailing zeros do not coun...

13 years ago

Solved


Add more zeros
Find code that adds one 0 to each sequence of 0 in a string (composed with only 0 or 1). For example: '1010' -> '100100' ...

13 years ago

Answered
Error: 'Matrix dimensions must agree' even when using a scalar to multiply with Matrix.
Based on the code you placed here, it looks like your first line is missing an *input* function and is instead just creating a s...

13 years ago | 1

| accepted

Answered
Training for matlab Programming
These tutorials might be of interest to you: http://www.mathworks.com/help/matlab/getting-started-with-matlab.html

13 years ago | 1

Answered
How to delete entire row containing a certain value.
Does this work? A(any(isnan(A),2),:) = [] It looks like your "any" function was operating column-by-column instead of ro...

13 years ago | 1

Solved


reading multiple lvm files
i take data in labview. It saves the data in lvm format. I use the dlmread command to read it,but i dont know how to read multip...

13 years ago

Answered
What does this syntax mean?
You can index and array with *end*. End is basically just the length of your variable. So this is saying "index from the 365th f...

13 years ago | 0

Answered
Select graph section using ginput
It looks like you're reassigning y in your code when you call ginput. y should be the ith column of P, but it gets overwritten a...

13 years ago | 0

| accepted

Solved


Getting the indices from a matrice
Getting the indices from a matrice. Inspired by Problem 645. Getting the indices from a vector by the great Doug Hull. Given a...

13 years ago

Answered
Updating edit text box in GUI
Instead of putting your equation in the CreateFcn, put it in AOI_Callback. Also, using the handles structure instead of globa...

13 years ago | 1

| accepted

Solved


Vectorizing, too easy or too hard?
Please insert a . before any ^, * or / in the string. That's it!!

13 years ago

Solved


Morse Code Generator! Try it!
.... . .-.. .-.. --- . ...- . .-. -.-- --- -. . -.-.-- .-.. . - ... -.. --- ... --- -- . -- --...

13 years ago

Solved


Count letters occurence in text, specific to words with a given length.
Build a function with two input arguments: a string and a word length (number of letters), that outputs a vector of counts of th...

13 years ago

Solved


Sort complex numbers into complex conjugate pairs
Sort complex numbers into complex conjugate pairs. Example: Input x = [3-6i -1-4i -1+4i 3+6i] Sorted output = [-1 - ...

13 years ago

Solved


Simple problem creating a function from an abstract specification.
MYSTERYFUNCTION3 This takes a vector of numbers v and computes a vector w such the w[i] is the average of v[i] and the previous...

13 years ago

Answered
I have a char data. I want to extract first column from this char data.
If out1 is your string: pgs = char(regexp(out1,'p\.\d+','match')); Note that this requires out1 be a 1xn array, which it...

13 years ago | 0

| accepted

Answered
How to construct a matrix values by its row or column indexes?
[R C] = find(A);

13 years ago | 0

Solved


Maximum value in a matrix
Find the maximum value in the given matrix. For example, if A = [1 2 3; 4 7 8; 0 9 1]; then the answer is 9.

13 years ago

Solved


Find the hypotenuse
Given a and b (the two sides of a right-triangle), find c, the hypotenuse.

13 years ago

Solved


Triangular matrices in 3D array
Given a 3D numeric array _x_, return an array _y_ of the same size in which all entries to the right of the main diagonal are ze...

13 years ago

Answered
How to construct a matrix values by its row or column indexes?
A(sub2ind(size(A),R,C)) Example: >>A = magic(4); >>R = [1 1 1; 2 2 2; 3 3 3; 4 4 4]; >>C = [1 2 3; 1 2 3; 1 2 3;...

13 years ago | 0

Answered
indexing diagonals out of a 3d matrix
A = rand(14,14,1045); B = A(logical(repmat(eye(size(A(:,:,1))),[1 1 size(A,3)])))

13 years ago | 0

Solved


Max index of 3D array
Given a three dimensional array M(m,n,p) write a code that finds the three coordinates x,y,z of the Maximum value. Example ...

13 years ago

Solved


Matrix which contains the values of an other matrix A at the given locations.
If you have two matrices, which together give xc and yc coordinates into another matrix, eg : xc = [1 1 1; 2 2 1]; ...

13 years ago

Solved


Return elements unique to either input
Given two numeric inputs a and b, return a row vector that contains the numbers found in only a or only b, but not both. For ex...

13 years ago

Load more