Gelöst


Odd times even numbers in a matrix
First count the number of odd numbers in x, then the number of even. Return their product. example: x = [1 2] One odd ...

fast 10 Jahre vor

Gelöst


Find max prime number
Given integer number n. Find the max prime number (mpn) that smaller than or equal to n. Example: n = 10 --> mpn = 7

fast 10 Jahre vor

Gelöst


All odd - all even
All odd numbers in x are added, while all even numers are subtracted from this. example: x = [1 2 3 4 5]; y = +(1+3+5)-...

fast 10 Jahre vor

Gelöst


Calculate the answer to life the universe and everything
<https://en.wikipedia.org/wiki/42_(number)>

fast 10 Jahre vor

Gelöst


BASICS - sum part of vector
Please make a function, where as input you get vector "x" and and vector "c", where in "c" vector you get indexes to sum. Examp...

fast 10 Jahre vor

Gelöst


Rotate Matrix Depending on the input
Rotate matrix (CounterClockwise) via 90, 180 or -90 depending on the input Ex. a = [1 2 3; 4 5 6; 7 8 9] b = 90; ...

fast 10 Jahre vor

Gelöst


Basic commands - amount of inputs
Make a function, which will return amount of given inputs Example: amountinput(1,2,4,3,10) -> 5 , because we gave functio...

fast 10 Jahre vor

Gelöst


Basic commands - search path
Please list all search path from Matlab.

fast 10 Jahre vor

Gelöst


Basic commands - Where did I install Matlab?
Please make a function, which returns path to Matlab installation folder

fast 10 Jahre vor

Gelöst


Basic commands - rounding
make a function which will round to integer, which is nearer to zero. Example x=[-2.5 2]; y=[-2 2];

fast 10 Jahre vor

Gelöst


Basic commands - Which matlab files are here?
Please make a function which will list all specific for Matlab files in current folder.

fast 10 Jahre vor

Gelöst


square root
find square root of a number

fast 10 Jahre vor

Gelöst


double
Return twice the value of the number

fast 10 Jahre vor

Gelöst


list folder contents
list the contents of a folder

fast 10 Jahre vor

Gelöst


Basic commands - What if you can't use mod?
There is a function to calculate remainder after division, but it's not mod. Can you remmeber that function? HINT: Try to lo...

fast 10 Jahre vor

Beantwortet
separate the red part of imge
A naive approach would be to extract "red" colors from the image: I = imread('peppers.png'); R = I(:,:,1); G = I(:,...

fast 10 Jahre vor | 2

| akzeptiert

Beantwortet
montage of 3 image
See <https://www.mathworks.com/help/images/ref/montage.html montage>. An example: I = imread('peppers.png'); R = I(:,...

fast 10 Jahre vor | 0

| akzeptiert

Beantwortet
Why does 'Position' property not change the width of uicontrol slider?
The width of the slider is the third element of the Position vector, not the fourth, which is height. Try something like: s...

fast 10 Jahre vor | 0

Beantwortet
How do i recognize the text is written in which language?
Read this: <http://www.mathworks.com/help/vision/ug/ocr-language-data-files-.html Install OCR Language Data Support Packages> ...

fast 10 Jahre vor | 0

| akzeptiert

Beantwortet
why this gives me "Index exceeds matrix dimensions?" can any one help me. Thanks in advance
Are you sure the image is RGB instead of grayscale? As the error suggests, the variable img must not have a 2 layer in the 3rd d...

fast 10 Jahre vor | 0

Beantwortet
How to paste matlab table into Excel with headers
Try using <https://www.mathworks.com/help/matlab/ref/writetable.html writetable> instead of copy-and-paste.

fast 10 Jahre vor | 0

Beantwortet
Using i as an index within a loop in Matlab 2016a
I don't know what you mean by "this code barfs". I ran a simple for-loop in MATLAB R2016a with i as the index variable and exper...

fast 10 Jahre vor | 0

| akzeptiert

Beantwortet
Why does input() display this string improperly?
I could not reproduce your error, but I am using R2016a, so maybe that is the reason. As an alternative, try: str = spri...

fast 10 Jahre vor | 1

Beantwortet
How to write a Matlab script that is able to output images of triangles based on the size input? The following shows the half of a triangle but i can't find a way to make an isolated triangle. (The size you can put at range 3 - 8 )
What types of triangles do you need? And what will they be used for? If you need very basic triangles, you could use the tria...

fast 10 Jahre vor | 0

| akzeptiert

Beantwortet
Im trying to print a randomized vector with 20 columns for each row. How do I get to stop after it reaches the final value of the vector?
If I understand your code correctly, it appears that you want to create a 65x65 matrix of random integers in the range [0 9] tha...

fast 10 Jahre vor | 0

Beantwortet
Clustering by kmean?
See the documentation on the <https://www.mathworks.com/help/stats/kmeans.html kmeans> function. IDX = kmeans(X,K) The f...

fast 10 Jahre vor | 1

| akzeptiert

Beantwortet
How to create a loop with the sum adding up to a given N?
This sounds like a homework problem. The answer is basically already in the question. N = 10; x = 0; for ii=1:N ...

fast 10 Jahre vor | 0

Beantwortet
Is it possible to execute 2 scripts in 2 different matlab sessions at the same time, both using parfor?
Can you provide more details about your code? How do you create the pool? How many workers are you using? I am having trouble...

fast 10 Jahre vor | 0

Gelöst


Get Determinants
Get the determinant of matrix Please have a pride on not using built-in Matlab functions :)

fast 10 Jahre vor

Problem


Check if a directory is on the current MATLAB search path
Given a directory name as a string, return true if the directory is on the current MATLAB search path, and false otherwise.

fast 10 Jahre vor | 1 | 19 Lösungsvorschläge

Mehr laden