can i get rid of rectangular coordinates and get something like a blade shape image in matlab as shown in figure. If yes then please refer me to some example
Show older comments
Answers (3)
Bjorn Gustavsson
on 21 Jan 2014
yes. Use:
surf(X,Y,Z,C),shading flat.view(0,90)
Where you might set the Z-matrix to all zeros (or something else if you'd rather like that)
HTH
4 Comments
Bjorn Gustavsson
on 21 Jan 2014
OK, make an array with the radius of each [ca, cptot]-point so that you can make an array XYZ:
XYZ = [R.*cos(ca),R.*sin(ca),cptot];
from there you simply use the delaunay function to get a triangulation:
tri = delaunay(XYZ(:,1),XYZ(:,2));
After that you'll have to go to the file exchange and donwload the tricont, tricontf, or tricontour functions and use those to make your contour plot. Alternatively you could use griddata or TriScatteredInterp to resample your function to a suitable regular cartesian grid and then use contour on that, but resampling might be undesirable.
HTH
Rizwana
on 22 Jan 2014
Bjorn Gustavsson
on 22 Jan 2014
You have to check that their sizes are the same, first check:
whos R ca cptot
then hopefully you'll only have to transpose R:
XYZ = [R.'.*cos(ca),R.'.*sin(ca),cptot];
HTH
Walter Roberson
on 27 Jan 2014
0 votes
Have a look at "Obtaining Angular Directions in a Projection Space" in the document http://www.mathworks.com/help/map/accessing-computing-and-inverting-map-projection-data.html#f11-12738 . The graph shown there in 6. -- isn't that the same kind of graph that you need, except with a greater mapping angle? If so then you can use the setup shown in 1. but with different lat and lon limits.
Image Analyst
on 27 Jan 2014
0 votes
If it's just a rubber sheet stretch, then imtransform() can do that.
Categories
Find more on Matched Filter and Ambiguity Function in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!