Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to realize the drawing and partial magnification of the picture in matlab

Shulou Source: shulou.com Published: 2022-06-01 23:50:22 10月01日 Update

matlab how to achieve the figure, partial enlargement, many novices are not very clear about this, in order to help you solve this problem, the following small series will be explained in detail for everyone, there are people who need this to learn, I hope you can harvest.

In mathematics, a Weierstrass function is a class of real-valued functions that are everywhere continuous and everywhere non-differentiable. This function is named after its discoverer Karl Weierstrass. [1]

Historically, Weierstrass function is a famous mathematical counterexample. Until then, mathematicians believed that a continuous function was differentiable at every point except a few special points. Weierstrass function is the first function which is continuous and non-differentiable everywhere, which explains the existence of so-called "ill-conditioned" function and changes the view of mathematicians on continuous function at that time, which has important significance.

clear all;clc;close alllambda =5;H= 0.5;N=10000;[t, WCF] = Generate_WCF(lambda, H, N)figureh= plot(t,WCF,'b','linewidth',1);hold onxlabel('t')ylabel('y')grid onhold on

h= plot(t(end-3000:end),WCF(end-3000:end),'r','linewidth',1);h=fill([0 1 1 0],[ 1 1 4 4],'g')h.FaceAlpha=0.1

h=fill([0 1 1 0],[ 1 1 -1 -1],'b')h.FaceAlpha=0.1

set(gca,'linewidth', 0.8,' fontsize', 14)axis([0,1 -1 4])title ('original ')

axes ('position ',[0.28 0.538 0.568 0.31])h= plot(t(end-3000:end),WCF(end-3000:end),' r','linewidth', 1);set(gca,' linewidth', 0.8,'fontsize', 10)title ('detail enlarged')

function [t, WCF] = Generate_WCF( lambda, H, N)

t = linspace(0,1,N); %N samples. Kmax = 10;aux = NaN(1,Kmax);aux2 = NaN(Kmax,N);for k = 1:Kmax aux(k) = lambda^((-1)*(k*H)); aux2(k,:) = aux(k).* cos(2*pi*(lambda^k)*t);endWCF = sum(aux2);end

Did reading the above help you? If you still want to have further understanding of related knowledge or read more related articles, please pay attention to the industry information channel, thank you for your support.

Tags: Function mathematics Stella Strauss Weir local mathematician continuous function help graph clear special famous important content history original graph discoverer this meaning Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi NVidia Huawei Linux Redmi