photo

Kai Jensen


Active since 2018

Followers: 0   Following: 0

Statistics

MATLAB Answers

4 Questions
0 Answers

RANK
79,595
of 301,436

REPUTATION
0

CONTRIBUTIONS
4 Questions
0 Answers

ANSWER ACCEPTANCE
25.0%

VOTES RECEIVED
0

RANK
 of 21,278

REPUTATION
N/A

AVERAGE RATING
0.00

CONTRIBUTIONS
0 Files

DOWNLOADS
0

ALL TIME DOWNLOADS
0

RANK

of 174,540

CONTRIBUTIONS
0 Problems
0 Solutions

SCORE
0

NUMBER OF BADGES
0

CONTRIBUTIONS
0 Posts

CONTRIBUTIONS
0 Public Channels

AVERAGE RATING

CONTRIBUTIONS
0 Discussions

AVERAGE NO. OF LIKES

  • Thankful Level 1

View badges

Feeds

View by

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 (...

7 years ago | 0 answers | 0

0

answers

Question


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...

7 years ago | 0 answers | 0

0

answers

Question


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...

7 years ago | 1 answer | 0

1

answer

Question


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; ...

7 years ago | 1 answer | 0

1

answer