Kai Jensen
Followers: 0 Following: 0
Statistics
4 Questions
0 Answers
RANK
268,233
of 289,749
REPUTATION
0
CONTRIBUTIONS
4 Questions
0 Answers
ANSWER ACCEPTANCE
25.0%
VOTES RECEIVED
0
RANK
of 19,581
REPUTATION
N/A
AVERAGE RATING
0.00
CONTRIBUTIONS
0 Files
DOWNLOADS
0
ALL TIME DOWNLOADS
0
RANK
of 144,129
CONTRIBUTIONS
0 Problems
0 Solutions
SCORE
0
NUMBER OF BADGES
0
CONTRIBUTIONS
0 Posts
CONTRIBUTIONS
0 Public Channels
AVERAGE RATING
CONTRIBUTIONS
0 Highlights
AVERAGE NO. OF LIKES
Feeds
Question
How can I make this code more efficient?
close; clear all; clc; global cp1 vp1 cp2 vp2 value gk; A=1; % aggregate productivity a=0.36; % capital share of output (...
5 years ago | 0 answers | 0
0
answersQuestion
How to vectorize these nested for loops
for i=1:knum for j=1:knum cp1(i,j)=max(pf(kgrid(i))+(1-depreciation)*kgrid(i)-kgrid(j),0); vp1(i,j)= log(cp1(i...
5 years ago | 0 answers | 0
0
answersQuestion
Any way to make this code take up even less lines?
clear; close all; clc; iif = @(varargin) varargin{2 * find([varargin{1:2:end}], 1, 'first')}(); d = @(x)mod(x,2); e = @(x...
5 years ago | 1 answer | 0
1
answerQuestion
How to make MATLAB code run faster
How do I speed this script up? nuke; h = 16; %hours available K = 15; %Capital z = 1; %Total factor productivity t = 0; ...
5 years ago | 1 answer | 0