已回答
Variables not appearing in workspace
Well, it looks like your code needs interaction with user when using listdlg. It is obvious that a choice should be made before...

3 years 前 | 0

已回答
If I have an array with values and then another array with each value's category, how would I remove values with certain categories?
First, your notation for array is misguided. notation for arrays is [ ]. If you want only remove, reducing the size of your Da...

3 years 前 | 0

| 已接受

已回答
Unable to perform assignment
Is num two column variable? I wonder you should choose num(:, 1) or num(:, 2) to assign mgdata(:, 2).

3 years 前 | 0

已解决


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

3 years 前

已解决


Remove the Zero
Given an array n, remove all zeros

3 years 前

已解决


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

3 years 前

已解决


Height of a right-angled triangle
Given numbers a, b and c, find the height of the right angled triangle with sides a and b and hypotenuse c, for the base c. If a...

3 years 前

已回答
How to slice a two-dimensional array to get a one-dimensional array
Well, this is a specific suggestion for this case. You might implement some sort of loop for bigger cases. a = rand(5, 4) i =...

3 years 前 | 0

已回答
Why am I getting invalid expression?
You should declare Lambda and E as you made for counter. You also had some flaws in the if condition (a missing parenthesis, an...

3 years 前 | 0

| 已接受

已解决


Calculate a Damped Sinusoid
The equation of a damped sinusoid can be written as |y = A.ⅇ^(-λt)*cos(2πft)| where |A|, |λ|, and |f| ...

3 years 前

已解决


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

3 years 前

已解决


Create an index-powered vector
Given a input vector x, return y as index-powered vector as shown below. Example x = [2 3 6 9] then y should be [...

3 years 前

已回答
Matlab 5.2
A peer-reviewer journal will probably ask why you're using such an obsolete version of MATLAB. It is really necessary to use su...

3 years 前 | 0

已回答
How dicomCollection sorts dicom filenames?
I just used sort to fix the problem for idx = 1 : numel(collection.Row) dicomFilename = sort(collection.Filenames{idx}); ...

3 years 前 | 0

| 已接受

提问


How dicomCollection sorts dicom filenames?
Hi, I'm having issues when using dicomCollection to read multi-slice dicom volumes. I'm basically following steps in this link...

3 years 前 | 1 个回答 | 0

1

个回答

已回答
How do I check students use variables instead of hard-coded numbers in their scripts?
Well, I think that if your students would be cheating the way you mentioned, you could check both the variable value and if the ...

3 years 前 | 0

提问


If condition with multiple OR statements
Hi, I would like to understand what's the problem here. PURPOSE: Not print 'd', if the multiple OR statements are satisfied. ...

4 years 前 | 1 个回答 | 0

1

个回答

已回答
Displaying information on the image of Dicom
If you mean the dicom headers, there is a simple way to do it: % loading the headers info = dicominfo('yourPath2yourDicomImage...

4 years 前 | 0

已回答
How to plot multiple figures (.fig) into one figure?
what about this one?

4 years 前 | 0

已解决


Mid-term report
You just got your mid-term report, but it's full of ones and twos :(. So before you give it to your parents, you change it, in o...

4 years 前

已解决


Simple Matrix
Make the following matrix without typing it in one by one. [1 2 3; 2 4 6; 4 8 12] x=[1 2 3].

4 years 前

已解决


Box
Give the volume of a box, x is equal to the body diagonal.

4 years 前

已解决


Problem for beginners
Suppose that x is a column vector, with at least a length of 6. Delete the 2., 6., and the second last row. Example: X=[1;2;3...

4 years 前

已解决


Problem for beginners
M is a nxm matrix. Swap the fist and the second last column with eachother. X=[1 2 3;4 5 6;7 8 9] Y=[2 1 3;5 4 6;8 7 9]

4 years 前

已解决


Stairs
Make an n by n matrix, where the elements are ones and zeros. In the main diagonal, and under that, there should be only ones (...

4 years 前

已解决


Square
X is a number, write a code, where Y should be the square of X.

4 years 前

已解决


Square root
Given x (a matrix), give back another matrix, where all the elements are the square roots of x's elements.

4 years 前

已解决


Matrix problem for beginners
Make a matrix [0,0,0;1,1,1;2,2,2]. X=[0,1,2]

4 years 前

已解决


Matrix for beginners
Multiply x and y elemwise.

4 years 前

已解决


Find the sides of an isosceles triangle when given its area and height from its base to apex
Find the sides of an isosceles triangle when given its area and the height from its base to apex. For example, with A=12 and ...

4 years 前

加载更多