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

fast 13 Jahre vor | 0

| akzeptiert

Gelöst


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

fast 13 Jahre vor

Gelöst


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

fast 13 Jahre vor

Gelöst


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

fast 13 Jahre vor

Gelöst


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

fast 13 Jahre vor

Gelöst


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

fast 13 Jahre vor

Gelöst


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

fast 13 Jahre vor

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

fast 13 Jahre vor | 1

| akzeptiert

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

fast 13 Jahre vor | 1

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

fast 13 Jahre vor | 1

Gelöst


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

fast 13 Jahre vor

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

fast 13 Jahre vor | 0

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

fast 13 Jahre vor | 0

| akzeptiert

Gelöst


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

fast 13 Jahre vor

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

fast 13 Jahre vor | 1

| akzeptiert

Gelöst


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

fast 13 Jahre vor

Gelöst


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

fast 13 Jahre vor

Gelöst


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

fast 13 Jahre vor

Gelöst


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

fast 13 Jahre vor

Gelöst


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

fast 13 Jahre vor

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

fast 13 Jahre vor | 0

| akzeptiert

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

fast 13 Jahre vor | 0

Gelöst


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.

fast 13 Jahre vor

Gelöst


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

fast 13 Jahre vor

Gelöst


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

fast 13 Jahre vor

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

fast 13 Jahre vor | 0

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

fast 13 Jahre vor | 0

Gelöst


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

fast 13 Jahre vor

Gelöst


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

fast 13 Jahre vor

Gelöst


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

fast 13 Jahre vor

Mehr laden