Question


finding the max of the first x rows in a column vector
i have a column vector with 100 rows. how can i find the maximum value of the first 50 rows?

11 years ago | 1 answer | 0

1

answer

Question


horizontal lines in candle chart
Hi, I have a candle chart and want to add horizontal lines to it at the following levels: 0%, 23.6%;38.2%;50%;61.8%;76.4%;100%...

11 years ago | 1 answer | 0

1

answer

Question


sending content of variable via email
I want to send via gmail the variable not as attachment but display its content which is a row of numbers. How can I do that?

11 years ago | 1 answer | 0

1

answer

Question


error with gmail sending
Hi, I get the following error when wanting to send an email. Could anyone help me with this? Error using sendmail1 (line 171...

11 years ago | 1 answer | 0

1

answer

Question


selecting the last 60 rows in a matrix with an uncertain number of rows
Hi, I have an ax7 matrix with a greater than 60. So the matrix has at least 60 rows but I do not know the exact number. How can...

11 years ago | 1 answer | 0

1

answer

Question


sending a graph via email automatically
when i create a plot, how can i send it automatically via my gmail account? how can i configure this?

11 years ago | 1 answer | 0

1

answer

Question


plotting a figure with a variable as title
Hi, i want to plot a graph and the title of that graph should be equal to the variable mx1. how can i implement that?

11 years ago | 2 answers | 0

2

answers

Question


finding the derivative of a graph
I have a 60x1 vector which i plotted against time (60 units). I want to determine the derivative of that graph. How do i do that...

11 years ago | 1 answer | 0

1

answer

Question


color plotting matlab yellow
I have two vectors which I plot with the following formula but I want vector x1 to be plotted yellow. How do I do that? ...

11 years ago | 1 answer | 0

1

answer

Question


reshaping a matrix dimension
Hi, I have a 2x60 matrix and I want to reshape it to a 120x1 matrix. How can I do that?

11 years ago | 1 answer | 0

1

answer

Question


plotting 2 vectors of different
Hi, i got one vector that is 120 rows whilst the other is 60. How can i plot them in the same figure?

11 years ago | 1 answer | 0

1

answer

Question


converting matrix to column
How can i convert a 4 columned matrix to 4 vectors?

11 years ago | 1 answer | 0

1

answer

Question


finding the second and the third smallest value in a cell array
A = num2cell(reshape(randperm(12)-6,[],2),2); mn = cellfun(@(x) min(x(x>0)),A,'Un',0); mn = min([mn{:}]) % Show the mi...

11 years ago | 1 answer | 0

1

answer

Question


candle chart with data
I have a matrix called nature. The matrix consists of 7 columns. Column 3 is the opening, column 4 the max, column 5 the min and...

11 years ago | 1 answer | 0

1

answer

Question


selecting a specific range in a matrix and cell array
I have a large cell array with many matrices. I want to select row 1 and column 16 which has a matrix table. in that matrix tabl...

11 years ago | 2 answers | 0

2

answers

Question


finding the exact coordinates of the minimum value in a cell array
mn = cellfun(@(x) min(x(x>0)),A,'Un',0); [mn,idx] = min(fliplr([mn{:}])); mn % Show the minimum positve value. idx...

11 years ago | 1 answer | 0

1

answer

Question


changing a loop to a function
for x = 1:100 for y = 1:61 b = abs(bsxfun(@minus,q{x},kevin)) s{x,y} ...

11 years ago | 1 answer | 0

1

answer

Question


splitting a cell array and determining its size
Imagine that you have a cell array and you want to determine its size. What command would you use for it? Also how do I split th...

11 years ago | 1 answer | 0

1

answer

Question


gpu array calculation limited memory
Hi, i have a quadro 2200 with 4 gig ram. I would like to do a calculation with a variable that is 6 gigabytes big. Since gpuarr...

11 years ago | 1 answer | 0

1

answer

Question


error with gpuarray transformation
>> A3 = gpuArray(q); Error using gpuArray Only full arrays of fundamental numeric types or logical types are supported for ...

11 years ago | 1 answer | 0

1

answer

Answered
finding the coordinates of a value in a cell array
mn = cellfun(@(x) min(x(x>0)),q,'Un',0); [mn,idx] = min(fliplr([mn{:}])); mn % Show the minimum positve value. idx...

11 years ago | 0

Question


importing files automatically callback function error
function importfcn % wait an extra second to ensure that the file modification is complete pause(1.0); % read the ...

11 years ago | 1 answer | 0

1

answer

Question


finding the coordinates of a value in a cell array
for x = 1:100 for y = 1:61 b = abs(bsxfun(@minus,q{x,y},kevin)) averagesAcrossColumns ...

11 years ago | 2 answers | 0

2

answers

Question


accelerating a code via parfor
Is there any ways to speed up the code below? It is too slow on my computer? When I type in parpool, is that enough to use all t...

11 years ago | 2 answers | 0

2

answers

Question


finding the sum across the columns in a matrix
Hi, I have a matrix 62599x60 double. I want the sum of the 60 columns in every row. The output should be a 62599x1 matrix.

11 years ago | 1 answer | 0

1

answer

Question


finding the average in a matrix
Hi, I have a matrix 62599x60 double. I want the average of the 60 columns in every row. The output should be a 62599x1 matrix. ...

11 years ago | 1 answer | 0

1

answer

Question


importing a csv file into matlab automatically after it gets changed
I have .csv file on my desktop which get replaced. I want to use a command in matlab which imports this file every time it gets ...

11 years ago | 2 answers | 0

2

answers

Question


Non-singleton dimensions of the two input arrays must match each other.
a = {rand(6000,7); rand(3600,7); rand(600,7)}; mx = {randi(50,600,1), randi(50,600,1); randi(50,360,1), randi(50,360,1); ra...

11 years ago | 1 answer | 0

1

answer

Question


create a 3x3 cell array with random numbers
hi, i have the follow variable mx = {randi(50,600,1); randi(360,60,1); randi(50,60,1)} this is a 3x1 cell array. I want to cre...

11 years ago | 2 answers | 0

2

answers

Question


transforming a script for a matrix to a cell array
a = randi(50,600,9); mx = randi(50,60,1); mn = randi(50,60,1); b = reshape(a(:,7),10,[]).'; q = bsxfun(@minus,b,mx...

11 years ago | 1 answer | 0

1

answer

Load more