Feeds
질문
saving figure with minimal white space without ballooning the size
I saved a file with set(gca, 'LooseInset', get(gca, 'TightInset')); set(gcf, 'PaperPositionMode', 'auto'); saveas(gcf, filena...
3개월 전 | 답변 수: 0 | 0
0
답변답변 있음
defining function which generates 3d array within a class. Different behavior in class versus command window
I have a matrix function that is periodic. I need to use it in two ways: as a building block for an infinitesimal generator wi...
defining function which generates 3d array within a class. Different behavior in class versus command window
I have a matrix function that is periodic. I need to use it in two ways: as a building block for an infinitesimal generator wi...
7개월 전 | 0
| 수락됨
질문
defining function which generates 3d array within a class. Different behavior in class versus command window
This code: lam = @(t) 3*(1 + 0.8*cos(2*pi*t)); A1 = @(t) reshape([lam(t(:).'); lam(t(:).'); zeros(1, numel(t)); lam(t(:).')]...
7개월 전 | 답변 수: 1 | 0
1
답변답변 있음
I run the code below and expect to get a uniform histogram. It's not. I don't understand why not.
in answer to my own question, I can define bin_edges=-0.005:.01:.995; and then hh=histogram(fractime, bin_edges); and the re...
I run the code below and expect to get a uniform histogram. It's not. I don't understand why not.
in answer to my own question, I can define bin_edges=-0.005:.01:.995; and then hh=histogram(fractime, bin_edges); and the re...
1년 초과 전 | 0
질문
I run the code below and expect to get a uniform histogram. It's not. I don't understand why not.
% I have a two column array, the first column is time and the second column is state. I ran interp1 to observe my data at unifo...
1년 초과 전 | 답변 수: 2 | 0
2
답변질문
define a function in terms of an integral with variable limits
I have defined a function of two variables, say f(u,t), and would like to define a function g(t)=@(t)integral(f(u,t),u,[t-1,t])....
거의 3년 전 | 답변 수: 1 | 0
1
답변질문
adding counts of ordered pairs
I have a sequence of by 3 arrays, say , , , that are generated within a loop. That is, the number of rows of each array varie...
3년 초과 전 | 답변 수: 2 | 0
2
답변질문
accessing single function from an array of functions
I have defined a matrix of functions: a=@(t) (1+0.8*sin(2*pi*t)); b=@(t) .8*(1-0.8*sin(2*pi*t)); z = @(t) 0*t; %...
거의 4년 전 | 답변 수: 2 | 0
2
답변문제를 풀었습니다
Sum all integers from 1 to 2^n
Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.
거의 5년 전
문제를 풀었습니다
Project Euler: Problem 6, Natural numbers, squares and sums.
The sum of the squares of the first ten natural numbers is, 1^2 + 2^2 + ... + 10^2 = 385 The square of the sum of the first ...
거의 5년 전
문제를 풀었습니다
Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...
거의 5년 전

