Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

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

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

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.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report