Question

How to know where a class and its members are located ?

How do I locate where this file / function is ? dagnn % Add softmax loss layer. pFc8 = (arrayfun(@(a) strcmp(a.name, 'pr...

7 years ago | 1 answer | 0

Question

How to know what eval function is doing ?

I am trying out the deep learning toolbox of MatConvNet and while going through the demo, I saw a line of code net.conserve...

7 years ago | 1 answer | 0

Question

How to convert cell of cell to array of string ?

The textscan function has returned me something atrocious and I need to split the data accordingly. How do I convert a 1 x 1000 ...

7 years ago | 0 answers | 0

Question

How to textscan into cell

cell = textscan(fileID,'%d %s %d %d %d %d %d'); returns me a cell of 1 x 7 where each cell contains cells. How do I instea...

7 years ago | 0 answers | 0

Question

cell of cell to cell

I got this ugly data thanks to textscan <</matlabcentral/answers/uploaded_files/64756/qwe.png>> I want to convert so it lo...

7 years ago | 1 answer | 0

Question

how to read from text file and put into clean array

cell = textscan(fileID,'%d %s %d %d %d %d %d'); gives me a dirty cell and i dunno how to unpack it. Someone tell me how to read ...

7 years ago | 0 answers | 0

Question

Confusing questions on cells

I am studying cells in matlab and I have some questions that I find very confusing. *Question 1* temperature(1,:) = {'01...

7 years ago | 1 answer | 0

Question

how to convert cell to array

I have 1 x 7 cell. Each cell has 20000 x 1 array. How do I take 1st column and 3rd 4th 5 7 7 column ? So result becomes 20000 x ...

7 years ago | 2 answers | 0

Question

How to dlmread with different format ?

How to dlmread with different format ? Like my text file has string and int etc

7 years ago | 1 answer | 0

Question

how to not plot NaN but still have same array length

I have y = array of 10000 data. A lot of them are NaN. I dont want to plot NaN but if I use plot(y(~isnan(y)),'o'); my plot only...

7 years ago | 2 answers | 0

Question

Help Fit line / curve to data

Hello, I am trying to find the equation of a best fit line for this data that I have below. I tried using polynomial fit with de...

7 years ago | 2 answers | 0

Question

libcpmt.lib(xthrow.obj) : error LNK2038: mismatch detected for '_MSC_VER': value '1600' doesn't match value '1800' in nms_gpu_mex.o

I am trying to run the project here https://github.com/ShaoqingRen/faster_rcnn and I am getting an error when I run the function...

8 years ago | 1 answer | 0

Question

extract rows of a matrix

I have a matrix with many rows and 6 columns. I want to extract the rows whose 6th column == 1. How can I do this ? And what is ...

8 years ago | 2 answers | 0

Question

Remove columns of cell that contain double

I am aware that I can use http://www.mathworks.com/help/matlab/ref/isa.html to determine the data type of an object. However, ho...

8 years ago | 2 answers | 0

Question

Precision Recall Plot given the ground truth, predicted label, and predicted score

How can i get the precision recall plot for this ? I know of the function at http://www.mathworks.com/help/stats/perfcurve.html ...

8 years ago | 0 answers | 0

Question

Faster way to concatenate arrays with unknown size ?

In my application, I have a huge for loop and at each iteration, I concatenate the 'result' array with the matrix obtained at th...

8 years ago | 1 answer | 0

Question

Matlab plot , skip every 9,10,19,20, etc

Hello forum I have a vector of 160 values and would like to plot them but leave 2 unit spacing every 8 values. How can i achi...

8 years ago | 2 answers | 0

Question

Access all rows of structure

I have a train structure with the contents shown below. How do i extract all of the objective values column ? I tried train.obje...

8 years ago | 1 answer | 0

Question

Qn regarding Matlab Montage

Is it possible to generate a montage of images with some spacing in between ? My images are really small so it would look better...

8 years ago | 1 answer | 0

Question

Convert cell (each entry is a 3D matrix) to 4D matrix

I have a cell array of size ( 1 x 80000 ). In each of the cell I have a 3D matrix (an image). How do I convert the cell array to...

8 years ago | 1 answer | 0

Question

How to print text on the same line ?

I want to print a sentence on the same line like for i=1:100 printf('At %d', i); end So matlab must print At 1...

8 years ago | 6 answers | 0

Question

How to properly delete cell element ?

I have a 1x12 cell. How do i remove the last element in the cell ? I tried cell{end} = [] but it did not work. It only emptied t...

8 years ago | 4 answers | 3

Question

Convert cell data type to single

I have a cell each cell have array. I want to convert ALL to type single but i cannot. Matlab gives error Conversion to sin...

8 years ago | 1 answer | 0

Question

How to translate image and pad border ?

Hi I would like to use imtranslate but i want the output to not have black borders and be of same size as input. Like if my inpu...

8 years ago | 1 answer | 0

Question

Assign multiple values to array

I want to assign different values to different parts of my array like below. 1 to 10 gets assigned 99, end-1 to end gets 98. How...

8 years ago | 1 answer | 0

Question

Load .mat from file and assign new name

I have a image.mat file and inside it is positive_sample variable of 4D matrix. I want to load this variable into a new variable...

8 years ago | 2 answers | 0

Question

Concatenate cell of arrays

I have a cell(1 row x many columns) of arrays( many rows x 5 columns). cell = [ 3 x 5 double, 2 x 5 double] I want to wr...

8 years ago | 2 answers | 0

Question

How do I pad an image after translating it ?

How do I pad the 'borders' of the image after translation by copying the nearest pixel values ? Like in this tutorial http://www...

8 years ago | 1 answer | 0

Question

minimum element of each matrix belonging to a 4d matrix

I have a 4D matrix which you can think of as an array of matrices. How do i find the minimum value of each matrix ?

8 years ago | 1 answer | 0