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

más de 3 años hace | 0

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

más de 3 años hace | 0

| aceptada

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

más de 3 años hace | 0

Resuelto


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

más de 3 años hace

Resuelto


Remove the Zero
Given an array n, remove all zeros

más de 3 años hace

Resuelto


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

más de 3 años hace

Resuelto


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

más de 3 años hace

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

más de 3 años hace | 0

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

más de 3 años hace | 0

| aceptada

Resuelto


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

más de 3 años hace

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

más de 3 años hace

Resuelto


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

más de 3 años hace

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

más de 3 años hace | 0

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

más de 3 años hace | 0

| aceptada

Pregunta


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

más de 3 años hace | 1 respuesta | 0

1

respuesta

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

más de 3 años hace | 0

Pregunta


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

casi 4 años hace | 1 respuesta | 0

1

respuesta

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

casi 4 años hace | 0

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

casi 4 años hace | 0

Resuelto


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

casi 4 años hace

Resuelto


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

casi 4 años hace

Resuelto


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

casi 4 años hace

Resuelto


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

casi 4 años hace

Resuelto


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]

casi 4 años hace

Resuelto


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

casi 4 años hace

Resuelto


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

casi 4 años hace

Resuelto


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

casi 4 años hace

Resuelto


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

casi 4 años hace

Resuelto


Matrix for beginners
Multiply x and y elemwise.

casi 4 años hace

Resuelto


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

casi 4 años hace

Cargar más