Respondida
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...

casi 13 años hace | 0

| aceptada

Resuelto


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

casi 13 años hace

Resuelto


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

casi 13 años hace

Resuelto


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

casi 13 años hace

Resuelto


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

casi 13 años hace

Resuelto


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...

casi 13 años hace

Resuelto


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' ...

casi 13 años hace

Respondida
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...

casi 13 años hace | 1

| aceptada

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

casi 13 años hace | 1

Respondida
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...

casi 13 años hace | 1

Resuelto


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...

casi 13 años hace

Respondida
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...

casi 13 años hace | 0

Respondida
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...

casi 13 años hace | 0

| aceptada

Resuelto


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...

casi 13 años hace

Respondida
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...

casi 13 años hace | 1

| aceptada

Resuelto


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

casi 13 años hace

Resuelto


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

casi 13 años hace

Resuelto


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...

casi 13 años hace

Resuelto


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 - ...

casi 13 años hace

Resuelto


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...

casi 13 años hace

Respondida
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...

casi 13 años hace | 0

| aceptada

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

casi 13 años hace | 0

Resuelto


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.

casi 13 años hace

Resuelto


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

casi 13 años hace

Resuelto


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...

casi 13 años hace

Respondida
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;...

casi 13 años hace | 0

Respondida
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)])))

casi 13 años hace | 0

Resuelto


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 ...

casi 13 años hace

Resuelto


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]; ...

casi 13 años hace

Resuelto


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...

casi 13 años hace

Cargar más