Approximate plot for values of 0-10
    3 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    ray sanchez
 el 7 de Mayo de 2015
  
    
    
    
    
    Respondida: Salaheddin Hosseinzadeh
      
 el 7 de Mayo de 2015
            How would I take this plot and approximate it only for the values R = 0, 1, 2..., 10?
 if true
clear; close all; clc;
[X,Y]=meshgrid(-20:0.1:20);
R = sqrt(X.^2 + Y.^2);
J=besselj(1,R); 
Z=(J./R);
Z(isnan(Z)) = 0.5; 
surf(X,Y,Z);
shading flat;
camlight;
0 comentarios
Respuesta aceptada
  Salaheddin Hosseinzadeh
      
 el 7 de Mayo de 2015
        I guess you need to change the meshgrid()
[X,Y] = meshgrid(0:10);
I guess that's all!
0 comentarios
Más respuestas (0)
Ver también
Categorías
				Más información sobre Lighting, Transparency, and Shading en Help Center y File Exchange.
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!