Publicado


Linear Algebra in MATLAB: Trying out AMD’s AOCL
In R2022a, MathWorks started shipping AMD’s AOCL alongside Intel’s MKL in MATLAB.  This article explains what these are and...

más de 2 años hace

Thumbnail

Publicado


R2022a was MathWorks biggest release ever
Every day, over 5000 MathWorkers start their work day thinking ‘How can I contribute to the acceleration of engineering and...

casi 3 años hace

Thumbnail

Publicado


[6 3 7 8 5 1 2 4 9 10] – or “A Story of Surprise About Randomness”
Back in late March, Tom Rhys Marshall discovered something about MATLAB’s handling of random numbers that he found both...

casi 3 años hace

Thumbnail

Publicado


How to make a GPU version of this MATLAB program by changing two lines
In his article, A short game of Life, Steve Eddins showed us the following few lines of code that impemented Conway's game...

casi 3 años hace

Thumbnail

Respondida
using matlab compiler to read a .mat file at run time
You can tell the compiler to exclude things using an Exclude pragma A demo: I created a .mat file as follows myvar = 1; save(...

casi 3 años hace | 1

| aceptada

Publicado


Finding if all elements of a matrix are finite, fast!
Today, I'm going to focus on three new functions that were added to the MATLAB programming language in R2022a: allfinite,...

casi 3 años hace

Thumbnail

Respondida
Is MATLAB supported on Apple Silicon Macs?
Blog post on this topic at Exploring the MATLAB beta for Native Apple Silicon » The MATLAB Blog - MATLAB & Simulink (mathworks.c...

casi 3 años hace | 2

Publicado


Exploring the MATLAB beta for Native Apple Silicon
Update 8th December 2022: You may be interested in the newer Apple Silicon beta that’s discussed at Playing with the R2022b...

casi 3 años hace

Thumbnail

Publicado


Welcome to The MATLAB Blog
In the last post of her long running blog, ‘Loren on the Art of MATLAB‘, Loren Shure mentioned that I’d be continuing the...

casi 3 años hace

Thumbnail

Respondida
Anderson Darling Goodness-of-the-fit test?
The statistics toolbox has an adtest function. It can test against a specific distribution with known parameters, or a more gene...

casi 3 años hace | 1

| aceptada

Respondida
Using Parfor for solving ODE via numerical methods (Euler)
As others have said, you cannot parallelise this loop. However, what you can do is parallelise independent runs of this loop. ...

alrededor de 3 años hace | 1

Respondida
OCR on a screenshot
Hi Paolo Just because I am MathWorks staff doesn't mean anything here because until right now I've never used MATLAB's ocr func...

alrededor de 3 años hace | 2

| aceptada

Respondida
i dont get why it says Unrecognized function or variable 'Nbin when i run it
It's because you have this line [count,center]=hist(x,Nbin); Nbin needs to be defined as the number of bins you want in the hi...

alrededor de 3 años hace | 0

Respondida
I would like to plot two bar charts side by side using separate y-axis for each corresponding plot.
Try tilledlayout. Documented at Create tiled chart layout - MATLAB tiledlayout (mathworks.com) % I want one row of plots with...

alrededor de 3 años hace | 0

| aceptada

Resuelto


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

alrededor de 3 años hace

Highlighted


Help us help you: Post your code
Every day, thousands of people ask questions on <https://mathworks.com/matlabcentral/answers/index MATLAB Answers> and many of t...

alrededor de 3 años hace | 23

Respondida
arrayfun doesn't work with rmoutliers
arrayfun operates on every element of the array. So arrayfun(@rmoutliers,A,"UniformOutput",false) is like doing rmoutliers(0...

más de 3 años hace | 0

Respondida
variables cannot be saved in matlab
This looks like an operating system error. In particular, you are trying to write to a folder where you don't have write permis...

más de 3 años hace | 0

| aceptada

Respondida
Values are getting updated every 15 seconds in thingspeak. How do I lower this time?
I guess you are using the free tier of thingspeak which is limited to one update every 15 seconds. For faster updates, you'll n...

más de 3 años hace | 2

| aceptada

Respondida
Double Integration error using /
You need to vectorise your equation alpha = 1.0; inte = @(y,x) (cos(x).^2)./(1 + alpha./(cos(x).*sqrt(1 - 1./y.^2))).^2.*(1./...

más de 3 años hace | 1

Respondida
fsolve gives the same value for different parameters of the nonlinear equation
It seems that chaging the paramet C_TIC from 0 to 2.78 doesn't affect the outpur much. I changed your function slightly so that...

más de 3 años hace | 0

Respondida
Converting MATLAB code into python code
Hi Aakash To get this running on a HPC system, it would be beneficial to know the details of the HPC system. As I said in my co...

más de 3 años hace | 11

| aceptada

Respondida
What is the difference between lu() and decomposition([],'lu')?
The two output form of lu() does use a different algorithm compared to the decomposition object. Also, it is not possible to sa...

más de 3 años hace | 0

| aceptada

Respondida
Zero elements in a matrix more higher than ones (MATLAB)
This is almost certainly not the most efficient way of doing it but it seems to work. Will need the statistics and ML toolbox f...

más de 3 años hace | 0

| aceptada

Resuelto


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

más de 3 años hace

Resuelto


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

más de 3 años hace

Respondida
Different results compared to hand calculation?
I don't know the algorithm you are implementing but I can see some things in your code that look strange to me and can explain w...

más de 3 años hace | 0

| aceptada

Respondida
R = rotx(ang), roty(ang), rotz(ang) is not working in my MATLAB.
As Scott mentioned, these are in Phase Array Toolbox. Since you have access to it on MATLAB Online, it must be included in your...

casi 4 años hace | 1

| aceptada

Respondida
Is there any implementation for Mask R-CNN in Matlab?
There's an example on the MathWorks GitHub site matlab-deep-learning/mask-rcnn: Mask-RCNN training and prediction in MATLAB for ...

alrededor de 4 años hace | 1

Respondida
is matlab production server included in education license
Update from the year 2021: MATLAB Prodction Server is now included in Campus-Wide Licenses (used to be called TAH license).

alrededor de 4 años hace | 0