2 answers

How to convert matrix data into columns?

I have data of 100 x 101. I want to convert them in series e.g. for first row all column data then for 2nd row all column data and so on. It means the result will be three columns only. The first ...

2 answers | 2 mins ago by Syed on Stack Overflow stackoverflow.com
2 answers

Custom Legend Matlab 2014b

I have a figure where I had some plots trough different functions using hold on. When I want to create my Legend, I don't have access to all the handle of my figures. Is there a way to create an ...

0 answers

How to call “MATLAB engine for Python” in Django?

I have installed "MATLAB engine for Python" from MathWork. My python version is 3.4 and it works well if I put my own-written m.file together with .py file under the same folder. But everything went ...

2 answers

Combinations of triangles that form a convex hull

I have a set of triangles. I am looking for a way to find all combinations of these triangles that constitute a convex hull when joined together. The convex hull should be empty, ie. no points inside ...

0 answers

How can i get Upper bound of convexHull as a function in MATLAB?

The above figure figure shows a plot of the following functions: convexHull in red boundary in blue and scatter as purple points. I want to create a function which will return 'y' for each 'x' ...

0 answers

issue in wav file duration

I recorded wav file using android app, I got the code of the app from this link http://www.edumobile.org/android/audio-recording-in-wav-format-in-android-programming/. I added a 6s timer by using ...

0 answers

crop multiply images matlab

Im trying to crop multiply images in my matlab script but i can't get it to work, my code looks like this now: close all clear all clc A= imread('Ring_background_2.jpg'); jpgFiles = dir('*.jpg'); ...

1 answer

Rearranging elements in a row matlab

I have two matrices in Matlab. A = and B = I want to assign the elements having the same cell-value according to it's corresponding column number in A matrix and move the elements there. I ...

1 answers | 3 hours ago by user5916581 on Stack Overflow stackoverflow.com
1 answer

Matlab: Out of memory error during multiplication operation

R = randn(960,d); creates a matrix of random numbers. I have another matrix X of dimension 1000000 by 960. When I am doing the operation B = (X*R >=0) ; I get the error Error using * Out ...

1 answers | 3 hours ago by Sm1 on Stack Overflow stackoverflow.com
0 answers

how to write code for scene cut detection in matlab?

How to do segmentation of sequences composed of several shots, the transitions (cuts) between adjacent shots need to be detected. for this i need to evaluate the difference between current frame I and ...

3 answers

find an inverse log transformation of an image in matlab

I have been searching for this almost all day. The general form of the log transformation is s = clog(1+r) where c = 0.1 The opposite is inverse log transformation(book). What will be the ...

1 answer

Using a character array to colour scatterplot points in matlab

I have some vectors I am plotting in a scatter plot: x, y, and z. I plot these vectors using the scatter3 function. scatter3(x, y, z) This now provides me with my scatterplot correctly. However, ...

1 answers | 4 hours ago by Shawn S on Stack Overflow stackoverflow.com
2 answers

How to save the size of image in txt file with matlab

I want to find the size of an image (height, width, and area) and save the size value in txt file. I tried this command: img = imread('TN4.jpg'); abu=rgb2gray(img); imwrite(abu,'abu.jpg'); ...

1 answer

3D to 4D Matrix conversion Matlab

I have a m x n x p 3D matrix available where, m x n are 2D images (row * columns), and p is the number of images. I need to make this matrix 4D such that the new dimensions are m x n x 1 x p. The ...

1 answers | 5 hours ago by shivang patel on Stack Overflow stackoverflow.com
0 answers

Matlab: Nonlinear equation solver

How do I solve these sets of equations and can matlab find a solution? I'm solving for x1,x2,x3,x4,c1,c2,c3,c4. syms c1 c2 c3 c4 x1 x2 x3 x4; eqn1 = c1 + c2 + c3 + c4 == 2; eqn2 = c1*x1 + c2*x2 + ...

0 answers

Programatically build a function with chosen variables given a mathematical expression in Matlab

I'm building a GUI to show a dynamically updating surface. The z variable would be a coefficient which is a nonlinear function of around 20 variables. I would like to preface with 'I am not a computer ...

2 answers

How can I read .img image format in MATLAB?

I have xray images in .img format. How can ı read .img image format in MATLAB and convert to png or other image formats?

3 answers

Read .img file in MATLAB and

I am quite new to MATLAB. I want to read a .img file in MATLAB and want to export it is any generic image format. I don't have any information about the file (i.e. image resolution) I tried reading ...

5 answers

Load MIT-BIH Arrhythmia ECG database onto MATLAB

I am working on ECG signal processing using neural network which involves pattern recognition. As I need to collect all the data from Matlab to use it as test signal, I am finding it difficult to ...

1 answer

Matlab : Confusion over find() function

find() function returns the indices where the elements are non-zero. I tried with different array sizes but both give error : In an assignment A(I) = B, the number of elements in B and I must be ...

1 answers | 11 hours ago by Sm1 on Stack Overflow stackoverflow.com
0 answers

Frangi filter working as an edge detector

I was trying to extract all the stems from a plant image using Frangi filter. I wanted to make use of the property that each stem has more vessel like characteristics than a leaf. Using this paper as ...

1 answer

Ackley optimization Matlab

Can anyone help me please with how should i do an optimaztion with Evolution Strategies for ackley function ? Here i have the function: function rez=ackley(x) [m,d]=size(x); sum1=0; sum2=0; for ...

1 answers | 12 hours ago by Adina Marin on Stack Overflow stackoverflow.com
1 answer

How to create different sized group bar plot in Matlab?

I would like to make a bar plot in Matlab with different sized groups. Assume the following data with 4 groups: a = [1]; b = [3 5]; c = [4 6 7] d = [3 6 7 9]; Of course I could just padd with ...

2 answers

Reading binary file into matlab

I have a data file that uses (char(1 byte), char[n](array of n chars), word(2 byte unsigned int), short(2 byte signed int), dword(4 byte unsigned int), long(4 byte signed int) and float(4 byte real)) ...

2 answers | 13 hours ago by Marissa Sileo on Stack Overflow stackoverflow.com
0 answers

Reading images in matplotlib vs opencv vs matlab

There are a lot of differences in how these libraries do things, one of which seems to be reading images from file using imread. It appears that matplotlib/skimage both read images into arrays of ...

1 answer

fminsearch for non linear regression Matlab?

Can anyone explain to me how I can apply fminsearch to this equation to find the value of K (Diode Equality Factor) using the Matlab command window. I = 10^-9(exp(38.68V/k)-1) I have data values ...

0 answers

How to switch 64 bit matlab to 32 bit mode

I have some data files which are compatible with only 32 bit matlab. However, my matlab is 64 bit. is it possible to switch 64 bit matlab to 32 bit mode? If yes, how? Thanks.

2 answers

Interpreting error from computing Jordan form of 36-by-36 matrix

I've been trying to compute the jordan normal form of a 36-by-36 matrix composed of only three distinct entries, 1, 1/2, and 0. The matrix is a probability transition matrix so, given these entries, ...

1 answer

.exe works in cmdline, not in matlab unix()

I am attempting to use MatLab to run myexecutable.exe in Ubuntu 14.04.3. The executable runs in the command line just fine, in other words: ./myexecutable.exe < inputfile in the cmdline runs and ...

1 answers | 15 hours ago by user5923407 on Stack Overflow stackoverflow.com
1 answer

Why initialize a variable that is immediately set in a loop?

Part of a while loop has some pieces: k = 1.6; %%give an initial k k1 = 1.5; l = 0.01 while abs((k-k1)/k)>0.00001 k1=k; k=k-l; ... end Why bother setting k1 = 1.5 when it is ...

1 answers | 15 hours ago by Sunhwa on Stack Overflow stackoverflow.com
15 30 50 per page
1 2 3