Joke Collection Website - News headlines - How to draw four dimensions (three-dimensional coordinates+color values) in matlab or Origin?
How to draw four dimensions (three-dimensional coordinates+color values) in matlab or Origin?
Please check the help of this function, and the example given is similar, as shown below:
[x, y, z] = sphere (16);
x =【x(:)*。 5 x(:)*。 75 x(:)】;
y =【y(:)*。 5y(:)*。 75y(:)】;
z =【z(:)*。 5 z(:)*。 75 z(:)】;
s = repmat(【 1 . 75 . 5】* 10,prod(size(x)), 1);
c = repmat(【 1 ^ 2 ^ 3】,prod(size(x)), 1);
Scatter 3(X (:), y (:), z (:), s (:), c (:),' filled'), view (-60,60)
Extended data:
Matlab includes control statements, functions, data structures, input and output, and object-oriented programming. Users can synchronize the input statement with the execution command in the command window, or write a large and complex application (M file) before running together. The new version of MATLAB language is based on the most popular C++ language, so its grammatical features are very similar to C++ language, and it is simpler and more in line with the writing format of mathematical expressions by scientific and technical personnel.
It is more convenient for non-computer professionals to use. Moreover, this language is highly portable and extensible, which is also an important reason why MATLAB can go deep into various fields of scientific research and engineering calculation.
Baidu encyclopedia -MATLAB
- Previous article:What grade is Armani?
- Next article:Safety Production Broadcast Manuscript Sample
- Related articles
- The difference between a credit card and a flower shop
- The latest situation of Dongge Road collapse in Nanning in 2019 Traffic control
- Who does the Health Bureau serve?
- Is fishing allowed in Shahe Reservoir in Beijing?
- Characteristic class slogan
- What's the latest studio name?
- Summary of maternal and child health work
- Does the Customs belong to the epidemic prevention and control unit?
- How many districts and counties are there in Yichun City?
- Contents of patriotic handwritten newspaper