Community Profile

Mateusz


25 total contributions since 2009

Contact

Contributions in
View by

Question


How to read all lines in txt file satisfying some condition
Let's assume we have the following format in the file: 1 str1 0 str2 1 str3 ... that is in each line we have: the first c...

3 years ago | 1 Answers | 0

1

answer

Question


Is it possible to recover from the Matlab Segmentation Fault error?
Is it possible to recover from the Matlab Segmentation Fault error from the Matlab source code? More precisely I am talking a...

3 years ago | 1 Answers | 0

1

answer

Question


Visualization of the legend outside of the image
Hi, I am using the following code to visualize the image with legend: currImg = imread(imagePath); fig = figure('...

3 years ago | 1 Answers | 0

1

answer

Question


Is there faster way of computing loop; max(w .* x); pool; ?
Let's assume I have a matrix x \in R[#features, #data] and matrix w \in R[#units, #features]. Currently I am computing max per u...

4 years ago | 1 Answers | 0

1

answer

Question


How to check the current line (debug)
I often use 'keyboard' command to debug my programs (since sometimes I have to use command line and matlab -nodisplay setup). Wh...

4 years ago | 1 Answers | 0

1

answer

Question


compilation using matlab and bash scripting
I have a bash script where I invoke the matlab compiler with some arguments, that is mcc ${MCC_ARGUMENTS}. Now I would like to ...

5 years ago | 1 Answers | 0

1

answer

Question


Finding indices when vectors is used
Assume we have x = [1,2,3,1]; If I execute idx = find(x == 1) then idx == [1,4]. Is there similar command for extracting...

5 years ago | 1 Answers | 0

1

answer

Question


Concatenation in Matlab (with or without copying elements)
Assume we have X = [A, B] where A and B are two vectors (or matrices). Is concatenation operation copies elements in A? If so is...

5 years ago | 2 Answers | 0

2

answers

Question


mex etymology and prononcuation
What is the meaning of mex (where does it come from)? What is correct pronunciation? In particular the last letter is English 'x...

5 years ago | 1 Answers | 1

1

answer

Question


Difference between adding and including (MCC)
What is difference between adding (option -a) and including (option -I) folder to the working path during compilation (MCC)? ...

5 years ago | 0 Answers | 0

0

answers

Question


Fast multiplication of rows of one matrix and columns of the second matrix
I would like to compute v(k) = A(k, :)* B(:, k) as fast as possible (no-loops). Currently, I am doing diag(A * B) but it h...

5 years ago | 2 Answers | 0

2

answers

Question


Fast function application
Hi, Let a be n-dimensional vector, B n-by-n dimensional matrix, f(a, b) - binary function that operates on two vectors, and r...

5 years ago | 1 Answers | 0

1

answer

Question


Optimization with respect to matrix
Hi, I have the following problem to solve: argmin_X |||| Xu - b ||||^2 where u and b are given (vectors), and |||| . |||| is l...

5 years ago | 1 Answers | 0

1

answer

Question


mcc and startup
Hi, In startup.m in my home directory I use addpath to include additional libraries. Now I would like to compile some source ...

5 years ago | 1 Answers | 0

1

answer

Question


How to deal with the problem of the changing size data?
I have the following code: im = {}; k = 0 while not_end(): im = {im{:}, dir(filepath, fileArray(k))}; k = k + 1...

5 years ago | 1 Answers | 0

1

answer

Question


How to get data from figures produced by errorbars?
I have a figure which was produced by using errorbars command. It plots the mean data and corresponding error bars. Now I woul...

5 years ago | 1 Answers | 0

1

answer

Question


Merging two figures
I have two figures with different plots. I would like to merge them into one figure that contains both plots and with keeping th...

5 years ago | 4 Answers | 0

4

answers

Question


Draw the minimal value from the plot
Let assume we have plot of some function (actually we have plot of the function-values at some sample points). Is it possible to...

5 years ago | 1 Answers | 0

1

answer

Responded


Re: Protected folder
Hi, Thanks, it is exactly what I meant. By the way do you know why Mathworks supports only private permission in folder struct...

6 years ago | 1820 views

Posted


Protected folder
Hi, In Matlab we can use folders to gain permissions. For example @MyClass +private ---my_private_fun.m MyClass.m my_public_fun...

6 years ago | 1820 views

Posted


FFT seen as a matrix, problem
Hi, In my application it's quite useful to see FFT function as a matrix. Unfortunately, it seems Matlab's fft doesn't like to w...

7 years ago | 1689 views

Responded


Re: Operators overloading and binding
Nice solution, thanks for that.

7 years ago | 1363 views

Posted


Operators overloading and binding
Hi, Is it possible to change binding of operators? More precisely, I overloaded mtimes operator however I would like that it ...

7 years ago | 1363 views

Posted


How to get the name of the caller?
Hi, I try to get the name of the caller function from the callee's side. Is it possible to do that in Matlab? For instance: fu...

7 years ago | 4431 views

Posted


How to get the name of the caller?
Hi, I try to get the name of the caller function from the callee's side. Is it possible to do that in Matlab? For instance: fu...

7 years ago | 809 views