Community Profile

Contact

Top 5% contributor

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...

2 Answers

0

Asked 3 years ago

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

1 Answers

1

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...

Asked 4 years ago

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

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...

3482 views

Posted 6 years ago

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

Asked 2 years ago

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

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...

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...

I have the following code: im = {}; k = 0 while not_end(): im = {im{:}, dir(filepath, fileArray(k))}; k = k + 1...

I have a figure which was produced by using errorbars command. It plots the mean data and corresponding error bars. Now I woul...

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

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

1635 views

Responded 5 years ago

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

Posted 5 years ago

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...

1490 views

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...

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

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...

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

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

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

Nice solution, thanks for that.

1161 views

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

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

0 Answers

615 views