matlab questions

matlab questions

  • All Sites

0 answers

Does numpy.dot behave different from matlab .*?

I try to port matlab code to numpy, particularly a matrix multiplication: % matlab multiplication of two 480x640 double, yields 480x640 double result = xgrid.*depth In python I thought it should ...

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

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

1 answer

MATLAB rand(m,n)

I want reconfirm what I believe is the answer. So this is the question: "Make a vector in MATLAB with $n = 10$ random elements, and then find the percentage of those elements that are less than ...

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

2 answers

Invert soundsc function in Matlab

Does anyone know what is the inverse function of soundsc in matlab. I'm playing a sound with a my PC microphone using soundsc, and I want to capture it in another PC using the inverse function. ...

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 | 5 hours ago by Shawn S on Stack Overflow stackoverflow.com
0 answers

Programmable parameter change of Pro/E simulation by using Excel VBA , Matlab, Labview or Pro/E own function

Now, I've been conducting beam simulation by using Pro/E. I would like to change payload(force) of beam step by step, and then plot the relation between deflection and payload(load range : 50kg to ...

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 | 6 hours ago by shivang patel on Stack Overflow stackoverflow.com
1 answer

what is the delta parameter in scal2freq?

I am running complex morlet (cmor1-1.5) wavelet transform. I want to have the transformation for the range of [1,150] Hz whit step of 1 Hz. I want to use scal2freq Matlab function to convert scales to ...

1 answers | 8 hours ago by pinar on Signal Processing dsp.stackexchange.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 + ...

1 answer

How to create a guitar waveform using Arduino DAC

I'm using Arduino DUE (Cortex-M3 based board). I want to make a guitar sound using DAC (digital to analog converter). For instance, the note A2's fundamental frequency is 110 Hz (using A4 440 Hz as ...

1 answers | 11 hours ago by David Lee on Signal Processing dsp.stackexchange.com
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 ...

1 answer

2D cross section from 3D surface

I am trying to apply the "restoring force surface" method to a dynamic linear system. The idea behind this method is that, knowing acceleration, displacement, velocity and input force it is possible ...

1 answers | 11 hours ago by Rhei on Computational Science scicomp.stackexchange.com
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 | 12 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 ...

3 answers

Average curve from set of curves

I have done some initial analyses on some patient datasets regarding neuro-degenerative diseases. A method I've used is DFA (Detrended Fluctuation Analysis) in MATLAB, which produced a family of ...

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
15 30 50 per page
1 2 3