For example: I have first vektor x1:
and second vector x2:
This steps I …
I want to change morlet wavelet function parameter in matlab i.e fc,fb morlet function define as 'cmorfb-fc' i.e. 'cmor5-1' in matlab
I want to change fb and fc in a loop. for example, in each loop …
I have to make a mex fil, so a wrote it and now I have some trouble with the compilation
i use the syntax:
mex CSerialCommunicator.cpp -I"./Inc"
and it always give me a linker error:
LINK : fatal …
please can you help me in solving this problem
I have totally uni-modular matrix A multiplied by set of Binary variables X.
it means that A*X<=B
how to solve this problem in polynomial time .. I …
When i try to call and run it, it takes so long and my PC freezes completely.
It is supposed to be used to shuffle image pixels randomly according to a seed key.
function [smg] = shuffle(mg, ...
I have hourly data and I want to do find the daily max 8-hour average. Basically, for each hour of the day, I want to do an 8-hour average. So take the average of 0:00 to 8:00, then 1:00 to 9:00, ...
I have a matrix(4,100) in MATLAB. Each one of its column are in such way that the 1st element
matrix(1,i) is the smaller and the 4th element matrix(4,i) is the bigger. Something like
The code shown below for drawing a Mandelbrot set, I think my code a bit redundancy to construction the Matrix M. In Python I know there is a clean way do this,
M = [[mandel(complex(r, i)) for r in …
I've been given a bunch of MATLAB/Octave files to work with, all with plain .m extensions. Sublime sees .m files as Objective C files. If I change the extensions to .matlab, then Sublime will ...
i have a very large data of about 500000 records each having 142 column and its in .txt file. What I want to do is extract only those records which contains the number 19 at a particular column, say …
In a slide within the introductory lecture on machine learning by Stanford's Andrew Ng at Coursera, he gives the following one line Octave solution to the cocktail party problem given the audio ...
I'm trying to remove a Gaussian noise from an image. I've added the noise myself using:
nImg = imnoise(img,'gaussian',0,0.01);
I now need to remove the noise using my own filter, or at least reduce …
I am very new to programming in Matlab, I just want to try out a small OOP scenario, but it does not quite work as expected. Here's my code:
age = 0;
need to find a set of optimal parameters P of the system y = P(1)*exp(-P(2)*x) - P(3)*x where x and y are experimental values. I defined my function
f = @(P) P(1)*exp(-P(2)*x) - P(3)*x
guess = …
I am trying to resample/recreate already recorded data for plotting purposes. I thought this is best place to ask the question (besides dsp.se).
The data is sampled at high frequency, contains to ...
I'm new in Matlab and I'm trying to input a matrix and write some "if" condition about it:
(not sure why it doesn't work)
A = [-5 -2 3; 4 7 1]
I insert some strobes into a C source code in order to obtain interesting information about every execution.
At the moment i print the information in a file at every execution. I have this kind of ...
I try to code a snake actif contour detector under matlab. this is my code so far :
function contour_actif (Image, nombre_point)
I am trying to detect mouth in an image using viola Jones in matlab. The algo detects the mouth along with some false detection. I have also changed values of threshold and minimum size but still get …
With Matlab 2012 and 2013, I found that setting XTickLabel on a bar chart only works with up to 15 bars. If there are more bars, labels are missing, as shown below.
Plotting 15 bars:
N = 15;
x = ...
I have an article for ANN for transport energy demand modelling.
I have Energy Demand as the target and 3 input, population, veh-km and GNP. However I am unable to create a multiple input, or rather …
I try to input matrix in matrix
A=[1 2;2 1];
and then input the matrix in new matrix with
i try to use
I need to write a function that "If x = 3" the function will set the elements in all the odd columns of the matrix to M (when M is the number of elements in the matrix).
Thanks in advance!
I'm running an algorithm and it's take a lot of time to execute(about 24 hours!). I just thought that if I create a .dll from my .m file and then run it, it will be much faster than what it is ? Is it …
I'm trying to solve a large linear programming task and have large matrixes.
[x,fval,exitflag] = linprog(f,A,b,,,lb,,);
Error using builtin
Out of memory. Type HELP ...
Here's my problem. I'm implementing high and low pass filers in the continuous time and discrete time domain, without using MATLAB built in functions or the Signal Processing Toolbox. I need to filter …
I have a MATLAB GUI which performs randomize function. For the first time I use F5 to run it.
Later, I try to run it again from the same GUI, it throws an error. Is there a way so that I
can avoid …
I am trying to solve a large-scale nonlinear problem with fmincon:
approximate # of variables = 10500,
approximate # of linear equality constraints = 4800,
approximate # of linear inequality ...
My goal is to predict N steps ahead with neuaral network in matlab. In order to do that first I train some part of the data and use trained values to predict the future behavior of it.
My question is …
I have to transform pixels from one image onto another image, by feature detection. I have calculated the projective transformation matrix. One image is the base image, and the other is a linearly ...