Question

Error in string operation

Runs correctly first time. On second run, says "Error using == Comparison between logical and string is not supported." What...

4 years ago | 1 answer | 0

Question

Nested loop error and saving result

Getitng an " Index in position 1 is invalid. Array indices must be positive integers or logical values." error. What am I not do...

4 years ago | 1 answer | 0

Question

Pass values to outside of loop after each iteration

hi, %note: outputs are floating point values i.e 123.4567 for w=1:20 for ss=1:24 d (ss,:)= 2*ss*(1:5)+(ss/w);...

5 years ago | 2 answers | 0

Question

Replace elements of a matrix

UPDATE: I expanded and updated the question and posted it as a new one. here : https://uk.mathworks.com/matlabcentral/answers/44...

5 years ago | 3 answers | 0

Question

Losing Format on import.

What is the right way to import time data from Excel without losing format? example 03:49:00 (hh:mm:ss) from excel is 0.1590 ...

6 years ago | 1 answer | 0

Question

Delete rows with same elements

a=[2 3 2;3 3 3;4 4 4;2 5 4; 3 5 5; 4 4 4; 7 3 4] how do I delete only those rows where elemets repeat for entire row length. In...

6 years ago | 2 answers | 0

Question

Combinations of a vector with replacement

Hello everyone. A = [2 3 4]. I am trying to generate these 2 combinations: 22, 23 ,24 ,32 ,33 ,34, 42 ,43 ,44 (order mat...

6 years ago | 1 answer | 0

Question

for loop running like a forever loop

Hi. Following generates combinations that sum to 75, using at least 2 values. This code runs but takes forever. How can i speed ...

6 years ago | 2 answers | 0

Question

reshaping matrix with odd number of total elements

how can I reshape a 63X5 matrix (315 elements) into a mX2 , and a mX4 matrix?

6 years ago | 2 answers | 0

Question

How to speed up calculation taking inputs from 2 separate and very large matrices (working code below)

Hi. The code below works. *updated portion* the REAL is 'a' is at 10600X5 and and 'b' at 60X5 and takes forever to run. How can ...

6 years ago | 1 answer | 0

Question

How to multiply each row of a matrix with a second full matrix, while applying a formula

I want to multiply each row of 'a' into 'b' while applying a formula for each row of b, thus creating a new martix of size 8,4. ...

6 years ago | 2 answers | 0