MATLAB Solutions & Expert Answers

Ask an expert. Trust the answer.
Academic and engineering questions answered by verified MATLAB professionals.

MATLAB expert answering student questions
Showing page 59 of 208 Ask a Question
sample from arbitrary continuous distribution
Xin · May 17, 2022 · probability distri... , sampling , AI, Data Science, and Statistics , Statistics and Machine Learn

Say I have a very complicated probability distribution function: x^(-2)*y^(-3)*exp(-z/t), where x y z t are all continuous positive numbers. The integration in x,y,z,t space is not…

Why can't read german umlauts from a .txt file?
prjctdth · May 17, 2022 · string , umlaut , special character , AI, Data Science, and Statistics , Text Analytics Toolbox ,

I need to read german text from a file and translate it into ascii-numbers. Of course it contains german umlauts 'ä', 'ö', 'ü' and the character 'ß' as well. After using fscanf…

How do I apply the T-Test correctly?
ga56 · May 17, 2022 · ttest , offset , t-test , mean , AI, Data Science, and Statistics , Statistics and Machine Learning

Hi everyone,   I am not sure if I apply the T-Test correctly to my data. In the description it says "H = TTEST(X) performs a t-test of the hypothesis that the data in the vector X…

How to use Gamma distribution as the kernel of Naive Bayes in MATLAB code?
Xiwei She · May 17, 2022 · gamma distribution , naive bayes , AI, Data Science, and Statistics , Statistics and Machine Learni

Here I have a group of data which following the Gamma distribution and now I want to use Naive Bayes method to fit this data. I tried the original function named 'fitcnb' and knowi…

Fitting a log-normal distribution
Lewis MacKenzie · May 17, 2022 · lognormal , fitting , AI, Data Science, and Statistics , Statistics and Machine Learning Toolbox ,

Hello,   I'm trying to plot a fit to a log-normal distribution. I have the statistics and machine learning toolbox, but I am confused as how to apply the log-normal fit function t…

How to calculate moving average in a matrix?
riyanath-seela · May 10, 2022 · moving average , matrix , AI, Data Science, and Statistics

Hi Guys, I have got a matrix :378x9. I need to calculate the moving average with a window size of 120(starting from row one). Can somebody help me please? By the way, i need to do …

As predicted delayed outputs settle in NarX
Greg Heath · May 10, 2022 · narx , tutorial , AI, Data Science, and Statistics , Deep Learning Toolbox

I applied my code to data simplenarx_dataset. To do this I performed the following steps: 1 - I have done autocorrelation and cross correlation peaks to see that gives us more info…

Finding inflection points of a noisy signal
Ghazal Hnr · May 10, 2022 · inflection , signal , AI, Data Science, and Statistics , Statistics and Machine Learning Toolbox

Hi, I'd like to find the inflection points of this noisy signal. Do you have any suggestions on how to do this?   fs = 100; %Hz dt = 1 / fs; t = 0:dt:2; x = sin(3 * pi * t) - (3 *…

Get a Free Consultation or a Sample Assignment Review!