0
votes
0answers
14 views

Matlab: fast equal comparison for structs?

The structs have a sparse implementation for multilinear functions. This part is from the mlf_add function that adds multilinear functions together like x+y+(2x)=3x+y. In order to do that, I need to ...
1
vote
0answers
19 views

Matlab: speeding up repetitive initialisation with structured data?

I need to speed up this code: it creates a multilinear function. I considered the below methods but no idea which with the largest benefit. replacing dummy variables with things such as ...
1
vote
0answers
39 views

How to make this more efficient

I have a fitness function where inputs x1 to x14 have values between 1:4. Is there a way to make to more efficient, any suggestions are useful please. I need to get the computation time down. A ...
5
votes
1answer
123 views

How to speed up this following code

I am doing my research about scheduling by using Matlab. I am a new Matlab user and I have a problem with time execution of my following code: clc clear all A=8; B=12; C=10; ProcessTime= [ 11 11 11 ...
3
votes
1answer
356 views

Code's optimization and speeding up (Legendre's polynomials and functions) in Matlab

I would like to improve this function to reduce the run time and optimize it. function [Pl,Plm] = funlegendre(gamma) Plm = zeros(70,71); Pl = zeros(70,1); P0 = 1; Pl(1) = gamma; ...
3
votes
3answers
357 views

MATLAB matrix processing

I'm currently working on a project where I am trying to predict a presidential election based on the population density and region of a voter. I wrote a few MATLAB functions to parse the data, but it ...
2
votes
1answer
280 views

how to reduce the computation time for this program matlab?

I started this program for five hours and it has not yet completed. I wonder if we can make changes to reduce the computation time. I use several for loop and this greatly increases the computation ...