"for" cycle to plot the point in a matrix with a certain radius
Mostrar comentarios más antiguos
Hi everyone,
I have a compressor blade defined in polar-cylindrical coordinates and I would like to write a script that plot just the points located at a certain radius (that will correspond to the hub or to the shroud of the blade).
I tried to use the code below, but it did not work.
Does anyone could help me?
Thank you very much
clear all
close all
clc
data = importdata("blade_pol.mat")
radius = data(:,1)
x = data(:,3);
y = data(:,1).*data(:,2);
for k = 1:size(data,1)
if radius(k,1) == 0.1160
plot(x(k),y(k))
end
end
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre 2-D and 3-D Plots en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!