Question


How to deploy a specific version of matlab when there are two versions installed on Linux?
Hi all, I have two versions of matlab installed in Linux ubuntu (15a and 19a). Once I type matlab on terminal, the 2019 versio...

6 years ago | 2 answers | 0

2

answers

Question


java.langUnsatisfiedLinkError problem
Hi all, I'm using MATLAB 2015a in Linux Ubuntu 19.04. My Matlab interface is a mess with the buttons of the interfaces. Somet...

6 years ago | 1 answer | 0

1

answer

Answered
MATLAB CLOSE THROUGH M-script
Did you try this?

6 years ago | 0

Answered
How to know maximal x and y cordinate in image
Hi Sipher. The example below is for a simple 3x3 matrix. But you can change to your image instead (as an image is a matrix). T...

6 years ago | 1

Solved


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

6 years ago

Solved


Roll the Dice!
*Description* Return two random integers between 1 and 6, inclusive, to simulate rolling 2 dice. *Example* [x1,x2] =...

6 years ago

Solved


Sum all integers from 1 to 2^n
Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.

6 years ago

Solved


Magic is simple (for beginners)
Determine for a magic square of order n, the magic sum m. For example m=15 for a magic square of order 3.

6 years ago

Solved


Weighted average
Given two lists of numbers, determine the weighted average. Example [1 2 3] and [10 15 20] should result in 33.333...

6 years ago

Solved


Find max
Find the maximum value of a given vector or matrix.

6 years ago

Solved


Get the length of a given vector
Given a vector x, the output y should equal the length of x.

6 years ago

Solved


Convert Fahrenheit to Celsius
Calculate the Celsius temperature C given the Fahrenheit temperature F. Examples: Input F = 90 Output C is 32.22 I...

6 years ago

Solved


Length of the hypotenuse
Given short sides of lengths a and b, calculate the length c of the hypotenuse of the right-angled triangle. <<http://upload....

6 years ago

Solved


Return area of square
Side of square=input=a Area=output=b

6 years ago

Solved


Generate a vector like 1,2,2,3,3,3,4,4,4,4
Generate a vector like 1,2,2,3,3,3,4,4,4,4 So if n = 3, then return [1 2 2 3 3 3] And if n = 5, then return [1 2 2...

6 years ago

Solved


Sum of diagonal of a square matrix
If x = [1 2 4; 3 4 5; 5 6 7] then y should be the sum of the diagonals of the matrix y = 1 + 4 + 7 = 12

6 years ago

Solved


Is my wife right?
Regardless of input, output the string 'yes'.

6 years ago

Solved


Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

6 years ago

Solved


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

6 years ago

Solved


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.

6 years ago

Answered
Can I read a single field using DICOMINFO?
Well, some of the meta-data are the same from a set of dicom images you're working on. There's this Dicom Library I use which i...

6 years ago | 1

Answered
How to check if a directory(folder) exists?
well, I suppose you want to create if it doesn't exist, after checking... so you could do it like that: if ~exist(your...

7 years ago | 36

| accepted

Question


How to call a sub-gui direct from the command window?
Hello fellows. I'm using GUIDE, and everything is working good. So, I have the main GUI with a pushbutton to a sub-GUI. There...

7 years ago | 0 answers | 0

0

answers

Question


GUIDE: how to share variables of a local function on its .m file to another callback button?
Hello fellows. This questions is about using GUIDE. Here's the problem: I have a function @callbackslider nested with another...

7 years ago | 2 answers | 0

2

answers

Answered
How do I clear the command history from the command line in MATLAB?
just type clc . It will clear your history window in matlab. If you want to clear the data as well, type: clc, clear

7 years ago | 0

Question


How to create a grid of squares inside a circle, assign them and get the sum of pixels inside the squares?
Hello fellows. I want to create a grid of squares within a circle like the image attached. The condition is to consider only to...

7 years ago | 1 answer | 0

1

answer

Answered
Image not generated after separation..?
uHm... Did you try to set a displayrange in your imshow? I don't know... it should work. figure,imshow(im, ...

10 years ago | 0

Question


Can I use a uicontrol with imshow?
Hello fellows. I have a code which dicom slice images are shown through imagesc and uicontrol. It works fine. However, I woul...

10 years ago | 1 answer | 0

1

answer