This is a huge topic which has entire Master's level courses devoted to it but I'll try to give an oversimplifed view.
TL;DR : Making effective use of HPC systems is highly problem dependent and often quite difficult. MATLAB has a bunch of tools that can help you out but you need to do a lot of work yourself.
HPC/cloud is not a magic bullet
What you have experienced is not just limited to MATLAB on HPC systems but to any program written in any programming language on HPC systems. I sometimes give a talk to HPC folk that discusses the problems users such as yourself face https://mikecroucher.github.io/HPC_for_everyone/. MATLAB is smart and can automatically use multiple cores and other HPC technlogy such as SIMD (Single Instruction Multiple Data) in many situations. Many linear algebra routines such as eig, svd and matrix multiply for example along with a bunch of stuff from the image processing toolbox. So called 'multithreaded' routines can be found in many places in MATLAB and you'll benefit from them with no extra work at all. However, to see an improvement from your 4 core laptop to a 32 core HPC system, they would have to form the dominant part of your calculation.
But what if this is not the case? What if your code doesn't make use of this free and easy form of parallelism? Well...you might even see a drop in performance when you move to HPC! As core count goes up, the CPU frequncy tends to come down (essentially for electrical power reasons) meaning that if your code is predominantly single threaded, you might find it goes faster on your laptop.
Other reasons for poor performance might be because you think you're running on all of a 32 core node but maybe your HPC job submission script has only asked for 1 core. You might be sharing that node with up to 31 other users!
Where is your code taking all of its time?
Once you have found out what's making your code slow, you need to ask yourself 'How can I do this part differently to make it faster?'. There are potentially a huge number of answers to this question, many of which won't have anything to do with a HPC system. The book 'Accelerating MATLAB Performance' (https://www.amazon.co.uk/Accelerating-MATLAB-Performance-speed-programs/dp/1482211297) has almost 800 pages!
If potential answers to this question include 'offload to a GPU' or 'split up and make use of multiple CPUs' then you may have a case for HPC.
How to make use of a HPC system?
There are many ways forward but here are 3 common scenarios:
job arrays (aka run lots of MATLABs): One potentially useful (and easy!) way of making use of a HPC system is when you need to run the same program many times but with different input parameters, input data etc. Learn how to submit 'Job arrays' (A term used by the HPC scheduler you system uses) to your cluster and run as many simultaneous instances as your sysadmin will allow you. It's like having 100+ laptops, each with its own install of MATLAB running an instance of your program (as an aside...I've seen people do this in University computing labs!).