Feeds
질문
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...
대략 11년 전 | 답변 수: 1 | 0
1
답변질문
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...
대략 11년 전 | 답변 수: 1 | 0
1
답변질문
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('...
대략 11년 전 | 답변 수: 1 | 0
1
답변질문
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...
거의 12년 전 | 답변 수: 1 | 0
1
답변질문
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...
12년 초과 전 | 답변 수: 2 | 0
2
답변질문
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 ...
거의 13년 전 | 답변 수: 1 | 0
1
답변질문
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...
거의 13년 전 | 답변 수: 1 | 0
1
답변질문
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...
거의 13년 전 | 답변 수: 2 | 1
2
답변질문
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...
거의 13년 전 | 답변 수: 1 | 1
1
답변질문
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)? ...
거의 13년 전 | 답변 수: 0 | 0
0
답변질문
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...
대략 13년 전 | 답변 수: 2 | 0
2
답변질문
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...
대략 13년 전 | 답변 수: 1 | 0
1
답변질문
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...
대략 13년 전 | 답변 수: 1 | 0
1
답변질문
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 ...
13년 초과 전 | 답변 수: 1 | 0
1
답변질문
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...
13년 초과 전 | 답변 수: 1 | 0
1
답변질문
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...
13년 초과 전 | 답변 수: 1 | 0
1
답변질문
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...
13년 초과 전 | 답변 수: 4 | 2
4
답변질문
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...
13년 초과 전 | 답변 수: 1 | 0