[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

MATLAB/FREEMAT

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 100
Thread images: 14

File: matlab.jpg (19KB, 754x320px) Image search: [Google]
matlab.jpg
19KB, 754x320px
Why do I need learn this shit?
>>
>>60281587
You choose to do so. So shut up and swallow
>>
>>60281627
No. I have to learn this shit on my college...
>>
>>60281647
It was your choice to go to that college.
>>
>>60281587
MATLAB is mostly idiot proof.
>>
if you dont use it on other classes, you probably are on shit tier college.

I use it on math, mechanical engineering, electrotechnic, computer science, automatics and others
>>
>>60281706
Yeah... It's for Introduction to Computer Science. Soon, I'll learn R, too. For statistics.
But, I like C, and a little bit of Python.

I DON'T WANNA LEARN THIS SHIT!
>>
>>60281748
you know that nasa, boeing and others make calculation in matlab?
how you want to be engeenier without some more powerful calculator
>>
>>60281767
Fuck NASA!
Fuck this others companies!
I was so happy yesterday. But now...
I'll try to make my job, anyway...
>>
>>60281587
>shit
Why? Being idiot proof makes it better than anything else
>>
>uni does not offer matlab licenses
>teacher will use octave instead

Fugg
>>
I'm wasting my time...
>>
>>60281863
piratebay?
>>
clear all; clc; close;
%4. wczytanie pliku
[x,y]=textread('d220.txt','%f %f');
a=min(x);
b=max(x);

%5.1 dobór wielomianu stopnia n
n=6;
p=polyfit(x,y,n)

%5.2 prezentacja wielomianu
x1=a:0.001:b;
y1=0;
for m=1:n+1
y1=y1+p(m)*x1.^(n-m+1);
end
figure (1);
plot(x,y,'k o',x1,y1,'-','Linewidth',2)
xlabel('x');ylabel('y');grid on;
legend ('zadane punkty','wielomian aproksymacyjny','Location','SouthWest');
title('Zadanie 5: dopasowanie wielomianu aproksymacyjnego');

%5.3 analiza błędu dopasowania
wynik=0;
for m=1:n+1
wynik=wynik+p(m)*x.^(n-m+1);
end
blad=abs(y-wynik);
max_blad_dopasowania=max(blad)

%6. miejsca zerowe
m_zerowe=roots(p);
w=1;
for j = 1:n
if (m_zerowe(j)>=a && m_zerowe(j)<=b)
m_zerowew(w)=m_zerowe(j);
w=w+1;
end
end
miejsca_zerowe=sort(m_zerowew)

%7. interpolacja
pkt=[1];
xm=[miejsca_zerowe pkt];
[nm,mm]=size(miejsca_zerowe);
ym=[zeros(nm,mm) pkt];
fm=polyfit(xm,ym,mm);

x_i = min(x):0.01:max(x);
y_i = interp1(xm,ym,x_i,'spline');
figure (2);
plot(xm,ym,'o',x_i,y_i,'-','Linewidth',2);
xlabel('x');ylabel('y');grid on;
legend ('Punkty wymagane','Interpolowanie');
title('Zadanie 7: wielomian interpolacyjny');

you mad?
>>
>>60281587
you dont, learn R instead, much more useful
matlab and simulink are shit
>>
>>60281977
Yeah, but it will be pretty useless at intro to CS class that I'm into

Maybe later I'll download and learn to use it
>>
>>60281748
>Introduction to X
>hurrr why is I has to learn dis? iz no fair
MATLAB is love, MATLAB is life. You will understand in a semester or two...
>>
>>60282067
... or two...
LOL

I can't fight against this shit... Better start learning fast!
>>
>>60282120
learn fast*
>>
>>60281701
Except when you somehow manage to fill your whole RAM using a loop, causing the PC to become unusable. Whoops.
>>
because everyone else uses it
>>
>>60281587
atleast it's not python
>>
>>60281587
Suck It up faggot. It's a very powerful tool that I used for more than half of my damn degree. Every course involving signal or image processing gave us HW using Matlab, plus it can be useful to solving some nasty equations iterativly. Their wiki/help Center is very helpful.
Somewhat big community.
>>
>>60282209
Have you bought it?
>>
This shit is expensive...
Can I use FREEMAT for everything?
>>
>>60281863
Why not use what the teacher uses? Makes no sense really
>>
>>60282284
Yeah, I'm using octave
But I would like to use matlab instead
>>
I'm done... The manual book have 2,500 pages!
>>
>>60282232
Hell no. Our faculty computer all have them but I usually just pirated it. Recently my institute got a license agreement with Mathworks so every student now has access to an official license (too bad they remembered about it in my last semester).
>>
>>60282553
Matlab is useful for what kind of shit?
>>
File: 1488767708861.jpg (46KB, 500x500px) Image search: [Google]
1488767708861.jpg
46KB, 500x500px
>>60281587
I don't know. Use Python if you don't feel like it.

Also, AVOID For-loops. VECTORIZE, ALWAYS. I've also found that figures and plots work best when saved as .pdf if you want to import into LaTeX, but I'm sure there is an even better way.
>>
>>60281748
You r a whiney baby knkw it all who clearly doesnt know it all. Fag
>>
>>60282783
I've used it through all of my bachelors and most of my masters degree, in engineering physics and machine learning respectively.

Also generally, it's easy to prototype and test code before implementing it for real.
>>
>>60281587
>Matlab

Because it's so fucking useful as a calculator for all your homework assignments. You'll never go back to calculators ever again.

>Protip: Save all the physical constants as a .mat file and you'll never have to type them in again
>>
File: GNU.png (130KB, 793x1972px) Image search: [Google]
GNU.png
130KB, 793x1972px
>>60281587
>FreeMat
>License GPL, older: MIT

And they just had to fuck it up with communism
>>
>>60284213
>Because it's so fucking useful as a calculator for all your homework assignments. You'll never go back to calculators ever again.
At that point why not use Maxima?
>>
>>60281748
>I don't wanna learn

Feel free to join the unemployed then and live a pauper's life for the rest of your existence. Education is a gift, treasure it.
>>
>>60281587
Matlab/Octave are great.
>>
>>60284226
fuck off /pol/
>>
Matlab is the most disgusting shit ever.
I don't even like Python, but Scipy, Mathpy, and pandas are vastly superior.
Or just use FORTRAN.
>>
>1 indexed arrays
I almost threw up when I started learning matlab and found that out. I just wanna use python, why must my profs shove this proprietary shit down my throat?
>>
>>60284253
GPL is fucking communism. MIT/BSD is freedom like do whatever you fucking want.
>>
>>60281587
It's good because it has a lot of functions for calculus and high end math things which will make your life easier if you need to use them. If you don't have to use a lot of math then you shouldn't use it.
>>
>>60282137
>using a loop
>in matlab

YOU'RE DOING IT WRONG.
>>
>>60281995
Accept rapefugees or face Merkel's army.
>>
>>60282256
Pirate it.
>>
>>60281587
The best thing about MATLAB is also the worst thing about MATLAB.

It's "super powerful" and easy for prototyping, which means that a lot of people that are actually unable to program have probably contributed to the codebase that you have to use.

Some of the worst code I've seen in my life was MATLAB Code. It's even worse than python in that regard.
>>
>>60284213
Really? I use a Casio calculator. Why matlab is better?
I mean, I have to code the homework solution, right?
>>
File: gnulag.jpg (317KB, 1920x1080px) Image search: [Google]
gnulag.jpg
317KB, 1920x1080px
>>60284497
> GPL is fucking communism.
tfw communism is still a scareword for ameritards
>>
File: Maxima CAS.png (317KB, 1267x744px) Image search: [Google]
Maxima CAS.png
317KB, 1267x744px
Why Matlab and not Maxima? Seriously
>>
>>60285207
Opensource is not communism, Jesus a capitalist society necessitates free flow of ideas and information. Being able to do this outside of other peoples interests aids this. You can fuck off with your sunk cost bullshit ideology. Take a swan dive off a bridge you recursive double faggot.
>>
>>60285333
Yes I am mad, GPL is not communism.
>>
>>60285261
As far as I know matlab is not even a full CAS
>>
>>60285316
> Opensource is not communism
Correct. On the other hand GPL has communist elements in it, because it creates non-profit circuit inside the capitalist society which allows people to step out market relations at least in some part of their life.
> a capitalist society necessitates free flow of ideas and information
Wrong. Capitalist mode of production enforces property relations wherever it can, see https://en.wikipedia.org/wiki/The_Great_Transformation_(book), even in the areas where there are literally no scarcity, like the fucking IP, or patents, or scientific publishing.
>>
>>60285558
>creates non-profit circuit inside the capitalist society
Nope, everybody can profit from GPL, and I mean everybody. Even is a non-profit made something with the code someone else can take that code, improve it and make money.

This is not just free as in freedom, this is "free as in free market".
>>
>>60285592
Communism is about Commons. GPL takes any piece of code and puts into commons from which it can never be transferred back to the market: https://youtu.be/em0FY9JDrJI?t=2h8m31s This forever removes the market element -- articial scarcity and exclusion -- from it and leaves someone only ability to sell some services, like support and maintenance, but not the access.
>>
>>60285207
You tell them comrade. Americans are like Nazis, afraid of a few dozen million dying at gulags here and there. Such capitalist scum. And always afraid of the starving as well. Much trash.
>>
>>60285394

It's only "free" and "open" if you join the collectivist commune.
>>
File: whatever.jpg (72KB, 500x702px) Image search: [Google]
whatever.jpg
72KB, 500x702px
>>60285829
>can be freely distributed and sold in the market
>"no, is removed from the market"
>"because I say so"
>>
>>60285849
Funny you saying that because people were industrially exterminated only in capitalist countries like Nazi Germany.
>>60285886
Yes, you have to join the collectivist commune to access wikipedia and linux.
>>
File: GNU Manifesto.png (254KB, 679x693px) Image search: [Google]
GNU Manifesto.png
254KB, 679x693px
>>60285829
>GPL takes any piece of code and puts into commons from which it can never be transferred back to the market

I can't believe so many autists fall for this bullshit. Code doesn't magically disappear off the face of the internet just because someone later copied it and put it in a close source program. The original code is still out there for anyone else to use. What GPL does is RESTRICT ~MY~ FREEDOM to do whatever I want with MY OWN CODE that is added in addition to the "free" code. If you want to work for free, that is fine. BUT it is Communism to demand everyone else does things the same exact way (equality of results).

>This forever removes the market element

There's nothing stopping people from selling GPL code. Idiots will buy anything.
>>
File: amirite.png (106KB, 318x444px) Image search: [Google]
amirite.png
106KB, 318x444px
>>60285829
>>60285886
>>60285997
>>
File: communists best killers.png (3MB, 4961x3508px) Image search: [Google]
communists best killers.png
3MB, 4961x3508px
>>60285976
>Funny you saying that because people were industrially exterminated only in capitalist countries like Nazi Germany.

Read a history book.
>>
>>60285997
>What GPL does is RESTRICT ~MY~ FREEDOM to do whatever I want with MY OWN CODE that is added in addition to the "free" code
GPL prevents you to close the source of your program, or letting others do the same; which is against freedom.

FUCK OFF, M**t SHILL
>>
>>60285974
Because you are speaking in the abstract which is of no interest. For the concrete subjects of capitalist social relationships the wikipedia pages (which you can sell), or gpl code (which you can sell) or air (which you can sell) are not acquired via market exchange, which means they are not, effectively, a commodities, but just use-values
>>
File: days-without-jewish-tricks.jpg (21KB, 439x290px) Image search: [Google]
days-without-jewish-tricks.jpg
21KB, 439x290px
>>60285997
You imply being in favor of programmers don't work for free and software shouldn't have restrictions. Which is nice and all if you weren't promoting cancerous license like MIT or BSD which are the the most filthy tricks to work for free for someone else.

Take your self-righteous speak up your ass you fucking trickster.
>>
File: getty.png (205KB, 1516x872px) Image search: [Google]
getty.png
205KB, 1516x872px
>>60286044
>posts propaganda
Why haven't you done that?
>>
>>60285997
>~MY~ FREEDOM to do whatever I want with MY OWN CODE that is added in addition to the "free" code
Yes, you can't use my code to do shitty things, that's the point. You can't capitalize on my labour for free, for instance.
>BUT it is Communism to demand everyone else does things the same exact way (equality of results).
Communism, also known as The Law.
>>
>>60286044
Are you counting famine? Because capitalism didn't make any apocalyptic scale famine right?

Jesus, no infograph is safe with you people, you dare to anything
>>
>Memes idiots repeat:
GPL is free as in freedom
Java is portable
C++ is slow
C is coding with the raw circuitry
Islam is the religion of peace
Games make kids shoot up their schools
If you have nothing to hide, why need privacy
Vaccines cause autism
>>
>>60286339
>You can't capitalize on my labour for free

Yes you can. There's nothing in GPL that stops people from selling your code.
>>
>>60286380
>>60286388
fuck off, you are way too much into derailing this thread retard
>>
You dont. Even my numerical analysis prof let us do our assignments in python. It's a fucking meme, don't fall for it.
>>
File: please-notice-this-md.png (28KB, 300x180px) Image search: [Google]
please-notice-this-md.png
28KB, 300x180px
>>60285261
>>
I had to study Simulink for Control theory in the Uni, I don't know if there are powerful alternatives. If you need vector algebra you'd better using R and Python.
>>60286388
We've been over that. He can't use my code as a part of a closed solution, which is enough for now. He can't use my code as part of Windows and then sell it to me.
>>
>>60286666
He's not selling your code. He's selling his own code.
>>
>>60286666
>We've been over that. He can't use my code as a part of a closed solution, which is enough for now. He can't use my code as part of Windows and then sell it to me.


>/g/ teaches a man to fish for free
>He uses that knowledge to fish for fishes
>He then sells them to you
>/g/: ZOMG you stole dem fishes!!! Gib me dat 4 free!!
>>
>>60286835
just fuck off would you
>>
>>60281748

R and python is the masterrace for getting employed as not a codemonkey who actually does research and solves problems.

t. quant
>>
File: 1490841618173.jpg (28KB, 386x514px) Image search: [Google]
1490841618173.jpg
28KB, 386x514px
>>60286859
Not until GPL is dead.
>>
>>60281995
Section 6 is ugly and you used a for loop for what should be a one liner.

m_zerowew = m_zerowe(find(m_zerowe>=a && m_zerowe<=b));


You may also be able to save some computation time by using poly2sym() then subs() rather than all those for loops to roll up your polynomials from coefficients.

Inbuilt methods are generally better for MATLAB and documentation is your friend. Can't really give advice on the math side since your variables are in polish and I'm lazy.
>>
>>60284399
The 1 index takes getting used to. Iirc it was carried from when MATLAB was written in FORTRAN and has been carried along. While it's annoying for CS-types, math people are used to it.
>>
>>60286354

Not like the famine in capitalist venezuela and dprk.
>>
>>60287235
Oh, you mean the one the CIA is pulling out, or is the food suddenly vanishing into thin air?
>>
>>60285261
Because Maxima doesn't have a Simulink alternative.
>>
>>60281587
Because you are probably learning engineering or scientific computing, albeit Python and R are pretty much better at it if you can't afford learning C or Haskell properly. MATLAB/Octave/Scilab is standard for engineering stuff, however Python and R cover a wider scope of problems by their huge availability of libraries.
>>
>>60287257
>conspiracy theories
>>
>>60287744
>what is red scare
fuck off
>>
>>60287487
R is horrible and scipy is an ugly hack.
>>
>>60287766
the problem here is not the conspiracy theory itself but that you're using conspiracy theories as a cheap cop out
>>
>>60287803
do you look in the mirror? seriously, fuck off
>>
>>60287782
Why do you think R is horrible? More than python?
>>
>>60287811
>no more arguments
>>
>>60281977
do any of the cracked versions work?
>>
>>60288646
Yes.
>>
>>60287357
A visual aide? Seriously that is all? Not saying it isn't a valid answer but if that is the case might as well give Maxima a look.
>>
>>60281587
>>60281677
This was the most pointless shit I had to do in college. I still don't see the point in learning it.
>>
>>60289828
Most people never learn coding until they get to college.
>>
>>60281587
I'm required to use SciLab for my course, god it's so fucking tedious
it's literally a gui on top of wrapper
>>
>>60281587
Do not. It's dead. Learn NumPy if you want.
Thread posts: 100
Thread images: 14


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.