matlab代码库
TODAIZHANG
这个作者很懒,什么都没留下…
展开
-
matlab画直方图实例
一个bar函数的实例figure(3);[counts,centers] = hist(behav_vec);bar(centers,counts);xlim([0.05 0.48]);xlabel(['Weber fraction (\itw)']);ylabel(['Number of subjects']);h = findobj(gca,'Type','bar');h.FaceColor = [0 0.6 0.9];效果原创 2021-02-07 20:24:32 · 640 阅读 · 0 评论 -
Psychtoolbox工具绘图实例
Screen(‘DrawTexture’)Screen('DrawTexture', windowPointer, texturePointer [,sourceRect] [,destinationRect] [,rotationAngle] [, filterMode] [, globalAlpha] [, modulateColor] [, textureShader] [, specialFlags] [, auxParameters]);Usage:Draw the texture spe原创 2020-05-22 17:39:21 · 2243 阅读 · 1 评论 -
matlab制作gif表情
先看效果变换前的静止图:变换后:matlab实现clear all; clc; close all;img = imread('orig_img.bmp');img = imresize(img, [124 124]);center = [64,50];count = 1;for p = 1:-0.1:0.6 x_low = 50*(1-p)+1; x_...原创 2020-04-29 12:31:27 · 1115 阅读 · 0 评论