Question

too many subplots- not visible output

I have a matrix of 17*17 subplots as an output of a process. When I run the script to show the matlab figure with subplots, they...

5 years ago | 1 answer | 0

Question

The global variable is lost between workspaces

I have written a matlab file (base.m) for an optimization problem that uses the genetic algorithm also in which I declare a glob...

5 years ago | 1 answer | 0

Question

Does fmincon implement any types of self-scaling approach for BFGS or LBFGS?

Do you have any idea that if matlab's fmincon with "BFGS" and "L-BFGS" is using any type of self-scaling of Hessian at each iter...

5 years ago | 0 answers | 1

Question

Replace a string in a file with a 1D array--please don't close it

Hi all, Please help me with this question. I have been trying to find a simple way to do so. Please don't close this. I ha...

6 years ago | 0 answers | 0

Question

Replace a string in a file with a 1D array but in multiple lines

Hi all, Please help me with this question. I have been trying to find a simple way to do so. I have a 1D number array wit...

6 years ago | 1 answer | 0

Question

replace a string by a cell array in a text file

Hi, I have a text file 'TEXT.txt' with the following format DATA [$1] / I would like to use strrep('TEXT.txt', '[$...

6 years ago | 2 answers | 0

Answered

Find array elements that meet a condition an put them in a secondary array

Thank you for your help. As a secondary filtering on B, I would like to only retain the rows when the first element of any ro...

Find array elements that meet a condition an put them in a secondary array

Thank you for your help. As a secondary filtering on B, I would like to only retain the rows when the first element of any ro...

6 years ago | 0

Question

Find array elements that meet a condition an put them in a secondary array

Hello all, I have a 3D matrix A. For example suppose that A is as follows: A(:,:,1) = 0.1835 0.0811 0.4359 ...

6 years ago | 5 answers | 0

Question

Write a 1D matrix to a text file such that only 6 numbers printed in each line

Hello all, I have a long 1D matrix A for example say: A=A[1,2,3,4,5,6,...,21]; I want to write this matrix in to a tab delimit...

6 years ago | 1 answer | 0

Question

Many subplots: none of them are shown

Hi I have a matlab file that generates an upper triangle matrix of subplots. However when I try to run the script and open it ...

6 years ago | 1 answer | 0

Question

Using fmincon kills my computer by using all the memory of the PC (24 GB) for a 20-d problem

I am using fmincon for a 20-dimensional problem. My function is a costly function but definitely doesn't need so much memory...

6 years ago | 0 answers | 0