Print 

Author Topic: Anyone use MATLAB?  (Read 2777 times)

Offline Sandoz

  • Posts Too Much
  • *****
  • Posts: 1436
  • An empty stomach is not a good political adviser.
Anyone use MATLAB?
« on: December 14, 2016, 02:33:30 PM »
I guess this is the best place to ask this.

Does anyone here use MATLAB?

It's been at my disposal for a while now. It's very easy to use(it's basically a high level java/C language) and it's great with visuals. I've been using it for years and I'm still learning new ways to use it; I'm constantly learning new functions from chatting with people who use it.

So does anyone use it?
Or does anyone want to learn more about it?
The sun is the same in a relative way, but you're older;
shorter of breath and one day closer to death.



Offline BFM_Mil

  • Lieutenant
  • *
  • Posts: 3717
  • Facepalm
Re: Anyone use MATLAB?
« Reply #1 on: December 14, 2016, 02:49:09 PM »
Never used it but I can work with Java language.

Offline Sandoz

  • Posts Too Much
  • *****
  • Posts: 1436
  • An empty stomach is not a good political adviser.
Re: Anyone use MATLAB?
« Reply #2 on: December 14, 2016, 03:07:26 PM »
MATLAB supposedly uses Java under the hood, but I never committed to learning it yet. But I'm putting time into learning C++ instead.

So how is Java? What uses are there for Java? Do you know if Java is similar to C++?
The sun is the same in a relative way, but you're older;
shorter of breath and one day closer to death.



Offline BFM_Mil

  • Lieutenant
  • *
  • Posts: 3717
  • Facepalm
Re: Anyone use MATLAB?
« Reply #3 on: December 14, 2016, 03:10:39 PM »
Never used C++ but I assume that is pretty similar to C which is pretty similar to Java. There's just a few differences but you can easily adapt between one or another.

Offline Sandoz

  • Posts Too Much
  • *****
  • Posts: 1436
  • An empty stomach is not a good political adviser.
Re: Anyone use MATLAB?
« Reply #4 on: December 14, 2016, 03:19:32 PM »
Yep, from what I hear C is a more bare-bones, closer-to-assembly language. C++ and C# are basically C with extra bells and whistles.
I heard that if you know one language, you can pick up another very easily. It's just a matter of learning the notation.

I'll have to stop procrastinating and put some time into learning Java, it seems to be all the rage with the kids these days.

So I guess Java would have a similar structure as this typical example:

#include <iostream>
 
int main()
{
    std::cout << "Hello world!";
    return 0;
}

The sun is the same in a relative way, but you're older;
shorter of breath and one day closer to death.



Offline BFM_Mil

  • Lieutenant
  • *
  • Posts: 3717
  • Facepalm
Re: Anyone use MATLAB?
« Reply #5 on: December 14, 2016, 03:24:23 PM »
In Java it would be something like this:

public static void main (String[] args){

     System.out.println("Hello World");

}

Offline Sandoz

  • Posts Too Much
  • *****
  • Posts: 1436
  • An empty stomach is not a good political adviser.
Re: Anyone use MATLAB?
« Reply #6 on: December 14, 2016, 03:36:52 PM »
hm...Are you sure you didn't slap the keyboard and use autocorrect? Because none of my programming knowledge could've prepared me for that :LOL:

Just kidding, it looks similar when I squint hard enough.
The sun is the same in a relative way, but you're older;
shorter of breath and one day closer to death.



Offline BFM_Mil

  • Lieutenant
  • *
  • Posts: 3717
  • Facepalm
Re: Anyone use MATLAB?
« Reply #7 on: December 14, 2016, 03:40:13 PM »
It seems hard but it is not. The way I was taught was like: don't worry too much about the first line in the beginning (you'll learn what it means later), you just need to know that is how you specify your main function. The other line is really how you print something xD

Offline BFM_Fénix

  • BFM Admin
  • *
  • Posts: 1396
  • I shall be reborn from the ashes
Re: Anyone use MATLAB?
« Reply #8 on: December 15, 2016, 10:10:43 AM »
MATLAB is widely used in engineering and research, as it allows for easy mathematical analysis and simulation. Currently, I am using it for image processing of diffraction patterns, so I use a lot of functions from that toolbox. Furthermore, considering my engineering formation, I have used fuzzy logic and neural networks for automatization and control. Finally, instead of using R language for statistical analysis I use matlab. It is oriented towards arrays and cells, so a lot of people around me, and I, find it easy to use.
« Last Edit: December 15, 2016, 10:14:42 AM by BFM_Fénix »
2000th member of the BFM forums.
According to Hlao, and Hlao's word is law.


Offline Sandoz

  • Posts Too Much
  • *****
  • Posts: 1436
  • An empty stomach is not a good political adviser.
Re: Anyone use MATLAB?
« Reply #9 on: December 16, 2016, 09:59:41 AM »
Arrays and cells seem to be real easy to deal with in MATLAB. I've been trying to convert some of my MATLAB programs to C++, sending arrays from one function to another seems near impossible without ~20 errors arising!

I haven't used it for image processing, what can MATLAB do image processing-wise?
The sun is the same in a relative way, but you're older;
shorter of breath and one day closer to death.



Offline BFM_Fénix

  • BFM Admin
  • *
  • Posts: 1396
  • I shall be reborn from the ashes
Re: Anyone use MATLAB?
« Reply #10 on: December 16, 2016, 02:43:21 PM »
In my previous message I should have included matrices (it is in fact in the name MATlab). Anyway, as an image can be considered a m-by-n-by-k matrix, matrix calculus is easily done. You can modify the parameters of the image (contrast, brightness, saturation, histogram equalisation, etc), apply different filters (linear and nonlinear), edge detection, image segmentation, pattern recognition, fast fourier transform, particle counting... If something catches your interest I can explain further (it is quite vast)

Also, matlab supports GPU computing with CUDA-enabled NVIDIA GPUs which is particularly useful for image processing of heavy data (I work with RAW images of 18Megapixel CMOS sensors)
2000th member of the BFM forums.
According to Hlao, and Hlao's word is law.


Print