yasi

30 Reputation

5 Badges

9 years, 231 days

MaplePrimes Activity


These are questions asked by yasi

How do I draw this plot in Maple?

I want the resulting shape of the 3D matrix M (ٍExcel file) to be placed in below grids codes.
The range of x and y is between 0 and 1 and the range of z is 1/1 e-4 to 1/1 e-10.

PlotTest.xlsx


 

``

grids := proc (M, x_min, x_max, y_min, y_max) local z_min, z_max, plot_f, xz, yz, xy; z_min := 0.11e-6; z_max := 0.1e-2; plot_f := plot3d(M, x = x_min .. x_max, y = y_min .. y_max); xz := plot3d([x, y_min, z], x = x_min .. x_max, z = z_min .. z_max, style = line, color = blue, thickness = 0, grid = [6, 6]); yz := plot3d([x_min, y, z], y = y_min .. y_max, z = z_min .. z_max, style = line, color = blue, thickness = 0, grid = [6, 6]); xy := plot3d([x, y, z_min], x = x_min .. x_max, y = y_min .. y_max, style = line, color = blue, thickness = 0, grid = [6, 6]); return plots:-display(plot_f, xz, yz, xy, lightmodel = none, tickmarks = [6, 6, 6], labels = [x, y, "Error"], labeldirections = [horizontal, horizontal, vertical], axes = frame, orientation = [45, 70, 0], view = 0.11e-6 .. 0.1e-2) end proc

grids(M, 0, 1, 0, 1)

Warning, expecting only range variables [x, y] in expression M to be plotted but found name M

 

 

``

``


 

Download eeeeeee.mw


Hi
Please give me the matlab coding for plot together of attach figure by matlab.fig
thanks...!

Hello,
I need help on plotting in for loop.

> N := 10; h := 1/N;
> for i from 0 to 10 do x[i] := i*h; p1 := evalf(cos(x[i])) end do;
> f1 := [seq([x[i], p1], i = 1 .. N)];
> plot([cos(x), f1], x = 0 .. 1, y = 0 .. 1);



The above code gives me  cos x plot and line plot, but I want plot of points and cos x.



Page 1 of 1