답변 있음
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년 초과 전 | 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년 초과 전 | 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년 초과 전 | 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년 초과 전

문제를 풀었습니다


Remove the Zero
Given an array n, remove all zeros

3년 초과 전

문제를 풀었습니다


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

3년 초과 전

문제를 풀었습니다


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년 초과 전

답변 있음
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년 초과 전 | 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년 초과 전 | 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년 초과 전

문제를 풀었습니다


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년 초과 전

문제를 풀었습니다


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년 초과 전

답변 있음
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년 초과 전 | 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년 초과 전 | 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년 초과 전 | 답변 수: 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년 초과 전 | 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년 전 | 답변 수: 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년 전 | 0

답변 있음
How to plot multiple figures (.fig) into one figure?
what about this one?

거의 4년 전 | 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년 전

문제를 풀었습니다


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년 전

문제를 풀었습니다


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

거의 4년 전

문제를 풀었습니다


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년 전

문제를 풀었습니다


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년 전

문제를 풀었습니다


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년 전

문제를 풀었습니다


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

거의 4년 전

문제를 풀었습니다


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

거의 4년 전

문제를 풀었습니다


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

거의 4년 전

문제를 풀었습니다


Matrix for beginners
Multiply x and y elemwise.

거의 4년 전

문제를 풀었습니다


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년 전

더 보기