I want to plot B, L, and R mutually at the same time (using both 'for' loop).

`clear allclcR=[];for B=-20:20; M=1; X=M+B;l T=[]; for L=-10:10; N=2; Y=N+X; r=B+Y+L^2; T=[T r]; end R=[R T];end `

Skip to content# MATLAB: Three variables (two independent) 3D plotting

###### Related Question

mu

I want to plot B, L, and R mutually at the same time (using both 'for' loop).

`clear allclcR=[];for B=-20:20; M=1; X=M+B;l T=[]; for L=-10:10; N=2; Y=N+X; r=B+Y+L^2; T=[T r]; end R=[R T];end `

## Best Answer