Réponse apportée
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...

presque 13 ans il y a | 0

| A accepté

A résolu


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

presque 13 ans il y a

A résolu


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

presque 13 ans il y a

A résolu


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

presque 13 ans il y a

A résolu


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

presque 13 ans il y a

A résolu


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

presque 13 ans il y a

A résolu


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

presque 13 ans il y a

Réponse apportée
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...

presque 13 ans il y a | 1

| A accepté

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

presque 13 ans il y a | 1

Réponse apportée
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...

presque 13 ans il y a | 1

A résolu


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

presque 13 ans il y a

Réponse apportée
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...

presque 13 ans il y a | 0

Réponse apportée
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...

presque 13 ans il y a | 0

| A accepté

A résolu


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

presque 13 ans il y a

Réponse apportée
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...

presque 13 ans il y a | 1

| A accepté

A résolu


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

presque 13 ans il y a

A résolu


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

presque 13 ans il y a

A résolu


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

presque 13 ans il y a

A résolu


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

presque 13 ans il y a

A résolu


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

presque 13 ans il y a

Réponse apportée
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...

presque 13 ans il y a | 0

| A accepté

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

presque 13 ans il y a | 0

A résolu


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.

presque 13 ans il y a

A résolu


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

presque 13 ans il y a

A résolu


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

presque 13 ans il y a

Réponse apportée
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;...

presque 13 ans il y a | 0

Réponse apportée
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)])))

presque 13 ans il y a | 0

A résolu


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

presque 13 ans il y a

A résolu


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

presque 13 ans il y a

A résolu


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

presque 13 ans il y a

Charger plus