Question
Hello, I am trying to create a lognormal distribution using the 'lognrnd' command between 3000 and 10000 I want the distribution to be skewed to the right as that is the characteristic of lognormal distributions. I attempted several times to create the distribution using the mean and the standard deviation of the associated normal distribution spread between 3000 &10000 but when I plot the histogram of the generated lognormal distribution, the distribution still looks like a normal distribution without skewness.
Expert Answer
Neeta Dsouza
PhD Expert
Answered Aug 25, 2026
Here is some code that does roughly what you asked for.
r = lognrnd(8.6,0.2,100000,1); figure histfit(r); skewness(r)
The red curve is the normal curve fit to the randomly generated data. The skew is evident, with a skewness of about 0.6.
100% Run Guarantee
3-Hour Fast-Track Delivery
Need a Custom Version or Complete Simulation for This Problem?
Our 500+ PhD engineers build, debug, and optimize working MATLAB scripts and Simulink (.slx) models tailored to your exact assignment rubrics with zero plagiarism.
Tested on MATLAB R2024b / R2026a
Turnitin 0% Plagiarism Report
Free 7-Day Revisions Guarantee
Have a different question? Ask here
Related lognormal distribu... Questions & Solutions
Browse All →
Explore similar technical troubleshooting questions and verified MATLAB solutions:
Ready-to-Run MATLAB & Simulink Projects
Browse All Projects →