필터 지우기
필터 지우기

How to generate polat plot for 4 variables

조회 수: 2 (최근 30일)
Karolina
Karolina 2017년 1월 5일
편집: José-Luis 2017년 1월 5일
I would like to generate polar scatter plot for 4 variables (aspect, elevation, slope, area), where:
aspect - represent angular axis
elevation - represent radial axis (the distance from the center)
slope - represent the color of plot (grading color)
area - represent the size of dots
After typing the code (attached below) in Matlab R2014b I have the following error: Undefined function 'polarscatter' for input arguments of type 'double'. Does anybody know what can be wrong?
clear; clc; close;
D = [500.0 450.0 600.0 350.0]; % Elevation
S = [5.0 40.0 25.0 15.0]; % Slope
AS = [25.0 225.0 15.0 60.0]; % Aspect
A = [100.0 55.0 70.0 20.0]; % Area
polarscatter(AS,D,A,S,'filled');

채택된 답변

José-Luis
José-Luis 2017년 1월 5일
You need R2016b for polarscatter().
  댓글 수: 2
Karolina
Karolina 2017년 1월 5일
Thank you for the answer. Do you know is there any other function which I could use to get similar results to polarscatter?
José-Luis
José-Luis 2017년 1월 5일
편집: José-Luis 2017년 1월 5일
You can use scatter(). It should not be that difficult to transform polar coordinates to cartesian coordinates. Matlab even has cart2pol() and pol2cart() to help you.
Please accept the answer that best solves your problem.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Scatter Plots에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by