- 博客(6)
- 收藏
- 关注
原创 MATLAB 函数画图h=0.1,0.01,0.001
Exercise: 结果呈现: 方式: g = colormap(lines);hold on; for i = 1:3 x = 0:power(10,-i):2*pi; y = (exp(-x)) .* (sin((x.^2)/2)); m = diff(y)./diff(x); plot(x(1:end-1),m,'Color',g(i,:)); end hold off; set(gca,'YLim',[-0.25,0.25]); set(gca,'..
2021-10-21 21:20:01
1350
原创 MATLAB 解决个小问题|画图横纵坐标全是小方块
The derivatives of f(x) = sin(x) calculated using various h values 这把题目比较简单,我直接抄了答案,打算看一眼图: g = colormap(lines);hold on; for i = 1:4 x = 0:power(10,-i):pi; y = sin(x); m = diff(y)./diff(x); plot(x(1:end-1),m,'Color',g(i,:)); end hold of
2021-10-20 22:04:07
2314
2
原创 MATLAB 函数画图
Exercise: Plot the polynomial f(x) = (20x^3 - 7x^2 + 5x + 10)(4x^2 +12x - 3) and its derivative for -2<= x <= 1 画图结果: 实现方式: a = [20 -7 5 10]; b = [4 12 -3]; c = conv(a,b); x = -2 : 0.1 : 1; d = polyval(c,x); e = polyval(polyder(c),x); hold..
2021-10-17 21:09:39
372
原创 MATLAB Write your own equalization function
Practice: 1.Try it,and display it on the screen.
2021-10-16 22:18:57
228
原创 MATLAB GUI program 滑动条A + B加法
Practice: 1.It contains 2 sliders each of which is associated with a variable with value ranged from 0 to 100 2.Display the summation of the slider variables as integer function slider1_Callback(hObject, eventdata, handles) % hObject handle to sli
2021-10-13 20:40:56
1158
原创 MATLAB 温度转化
Exercise: 1.Write a function that asks for a temperature in degrees Fahrenheit 2.Compute the equivalent temperature in degrees Celsius 3.Show the converted temperature in degrees Celsius 4.The function should keep running until no number is provided to
2021-10-10 18:02:52
1121
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅