Solved


Project Euler: Problem 3, Largest prime factor
The prime factors of 13195 are 5, 7, 13 and 29. What is the largest prime factor of the number being input, input might be ui...

9 months ago

Solved


Solve a System of Linear Equations
Example: If a system of linear equations in x₁ and x₂ is: 2x₁ + x₂ = 2 x₁ - 4 x₂ = 3 Then the coefficient matrix (A) is: 2 ...

9 months ago

Solved


Verify Law of Large Numbers
If a large number of fair N-sided dice are rolled, the average of the simulated rolls is likely to be close to the mean of 1,2,....

9 months ago

Solved


Word Counting and Indexing
You are given a list of strings, each being a list of words divided by spaces. Break the strings into words, then return a maste...

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

9 months ago

Solved


Rotate Matrix @180 degree
Rotate Matrix @180 degree Example A=[8 1 6; 3 5 7; 4 9 2], then answer would be [2 9 4;...

9 months ago

Solved


Converts numbers into characters
Converts numbers into characters

9 months ago

Solved


Find the max element of the array
Find the max element of the array

9 months ago

Solved


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

9 months ago

Solved


Calculate the average value of the elements in the array
Calculate the average value of the elements in the array

9 months ago

Solved


to the 2 all elements
to the 2 all elements

9 months ago

Solved


the average value of the elements
Calculate the average value of the elements in the array

9 months ago

Solved


Double all elements in the array
Duplicate all elements in the array

9 months ago

Solved


calculate the length of matrix
input 1 array, calculate the length

9 months ago

Solved


Draw a '0' in a one matrix!

9 months 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. <<https://i.imgu...

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

9 months ago

Solved


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

9 months ago

Solved


Convert from Fahrenheit to Celsius
Given an input vector F containing temperature values in Fahrenheit, return an output vector C that contains the values in Celsi...

9 months ago

Solved


Calculate Amount of Cake Frosting
Given two input variables r and h, which stand for the radius and height of a cake, calculate the surface area of the cake you n...

9 months ago

Solved


Find the Oldest Person in a Room
Given two input vectors: * |name| - user last names * |age| - corresponding age of the person Return the name of the ol...

9 months ago

Answered
Preserving More Decimal Places When Importing Excel Files with readtable in MATLAB
All decimal places are retained for me ... % Change the format format long % Read the file r = readtable("Lab.xlsx"); % H...

11 months ago | 0

Answered
How to get MPE (Mean Percentage Error) with plsregress
The documentation doesn't seem to indicate any way to change the metric that is optimized. (This is unsurprising to me.) I can ...

11 months ago | 0

| accepted

Answered
Why is bootci giving different interval than prctile?
Because your prctile calculation should be ci = prctile(bootstat, [(alpha/2)*100,(1-(alpha/2))*100]);

12 months ago | 1

Answered
Tiling stacks of boxplots. Each stack contains 5 boxplots
Would subplot(2,5,1) ... subplot(2,5,10) do what you want? Also, I would highly recommend using tiledlayout over subplot. It ta...

12 months ago | 0

Answered
how to apply PCA over 6000x82 data
Take a look at this answer of mine which is effectively a tutorial on the MATLAB pca function.

1 year ago | 1

| accepted

Answered
Why is pagemtimes slower than just coding up the matrix multiplication?Especially on GPU.
It seems to me that the two functions are not calculating the same thing, based on the size of their respective outputs: rng ...

1 year ago | 1

Answered
SVM Fitcsvm() thresholds vs ROC curve thresholds
fitcsvm() fits the best possible SVM to the data. That function itself does not make the predictions. The resulting model objec...

1 year ago | 0

Answered
a function slows down my profiler: I would like to speed it up
It won't be a big speedup, but I would expect idx=find(Ntradess(id:-1:1,x)<=a1,1,'first'); to be consistently faster than idx...

1 year ago | 0

Answered
Two lines of plot title with number and date time
Since R2020b, there is a subtitle function. Here is how I would have written your code, incorporating that and some other change...

1 year ago | 0

Load more