Answered

Write data from MATLAB to a text file

I found the solution. Have a look at Export data from MATLAB to text files. A video tutorial on youtube which explains in full d...

Write data from MATLAB to a text file

I found the solution. Have a look at Export data from MATLAB to text files. A video tutorial on youtube which explains in full d...

4 meses ago | 0

| accepted

Question

Write data from MATLAB to a text file

I need to perform some numerical analysis in MATLAB and it will result in large volume of output. To store them I need to write ...

4 meses ago | 1 answer | 0

Question

Solving third order nonlinear boundary value problem

I have a boundary value problem in this form: where alpha is a nonzero constant and boudary conditions are: f(-1) = 0 f(0) ...

5 meses ago | 0 answers | 0

Question

rearrangement rows of matrices

Suppose: A = repmat((1:15)',1,5); Now I want to rearrange A such that it becomes matrix of size 5 by 15 in following form: B ...

6 meses ago | 4 answers | 0

Answered

How to load data from and .txt file?

I think it is much easier to use textread function. Following link describe in full detail how to use this function to import da...

How to load data from and .txt file?

I think it is much easier to use textread function. Following link describe in full detail how to use this function to import da...

9 meses ago | 0

Answered

How to import data from .txt file?

I think it is much easier to use textread function. Following link describe in full detail how to use this function to import da...

How to import data from .txt file?

I think it is much easier to use textread function. Following link describe in full detail how to use this function to import da...

9 meses ago | 0

Question

difficulty to use "sin" function

Consider following: T = 0.02; %period (sec) w = 2 * pi / T; %w = 314.1593, angqular freq...

alrededor de 1 año ago | 2 answers | 0

Answered

How to speedup very long expressions calculations?

To enhance the code you need to create a matrix and assign each variable to an array of matrix. For example variables gm0 to gm6...

How to speedup very long expressions calculations?

To enhance the code you need to create a matrix and assign each variable to an array of matrix. For example variables gm0 to gm6...

alrededor de 1 año ago | 0

Answered

How to pick random entries from the columns of a matrix such that their sum is equal to a already specified number?

I suppose you want to perform this on each column of matrix A seperately. Try this: A=[ 0.8147 0.9134; 0.9058 0.6324; 0....

How to pick random entries from the columns of a matrix such that their sum is equal to a already specified number?

I suppose you want to perform this on each column of matrix A seperately. Try this: A=[ 0.8147 0.9134; 0.9058 0.6324; 0....

alrededor de 1 año ago | 0

Question

MATLAB edition for Linux

Is there any matlab edition which can be installed on Linux? If yes, Is there any difference between performance of same matlab...

alrededor de 1 año ago | 1 answer | 0

Question

How can I solve the following integral equation

How can I solve the following integral equation in MATLAB numerically: where:

alrededor de 1 año ago | 1 answer | 0

Question

numerical integration in matlab

Suppose A is a column vector whose arrays are acceleration of a moving object and each array has been sampled every 0.01 sec. I...

alrededor de 1 año ago | 1 answer | 0

Question

How to write cell array to excel file

I have a cell array whose elements have different sizes. How can I write it to an excel file? For example: a = rand(10,1); b ...

alrededor de 1 año ago | 2 answers | 0

Question

how to use function "find" over matrices

Suppose x = rand(1e5,1e5); I want to find the lowest number in each column of x without using for loop. Is it possible?

alrededor de 1 año ago | 2 answers | 0

Question

dsp.ZeroCrossingDetector: a confusing error

I am trying to employ dsp.ZeroCrossingDetector to count number of zero crossings of a signal. Consider the following: x = 0 : p...

alrededor de 1 año ago | 1 answer | 0

Question

improvement of code performance

I have to use "emd" function for 500 signals and 100 times for each of them. As a result I developed a code like below: for ii ...

alrededor de 1 año ago | 0 answers | 0

Question

A 2D plot with different colors for each point

Suppose time is a column vector of length Lt, freq and amp are matrces of size Lt * n. I want to plot a each column of freq agai...

alrededor de 1 año ago | 1 answer | 0

Question

How to add a 2D line to a surf plot

The following figure shows the x-y view of a surf plot. How can I add a 2D line to this type of plots. For example I have added ...

alrededor de 1 año ago | 1 answer | 0

Question

Problem in using asin function

Consider the followingj t = 0 : 0.02 : 10; nu = (t-5).^2 + 2; omega = 2*pi*nu;%as a polynomial of degree 2 f = sin(omega); ...

alrededor de 1 año ago | 1 answer | 0

Question

continuous wavelet transform for a specified frequency range

Consider column vector h as a one dimensional signal with length Lh. I want to evaluate the continuous wavelet transform of sig...

alrededor de 1 año ago | 0 answers | 0

Question

Built in function for S-transform

Does MATLAB has any built in function for S-transform?

alrededor de 1 año ago | 0 answers | 0

Question

spectrogram of matrix in MATLAB

I hvae a matrix F whose arrays are positive numbers with the size of 8000 * 1000. I want to plot a spectrogram for F such that...

alrededor de 1 año ago | 0 answers | 0

Question

Negative instantanous frequency values in outputs of hht function

I am using hht function of MATLAB to evaluate instantanous frequency of a signal sig (a column vector of real numbers) using the...

alrededor de 1 año ago | 0 answers | 0

Question

Non-stationary signal decomposition

suppose f(t) is a non-stationary signal which can be expressed as follow: f(t) = A1(t)*sin(w1*t) + A2*sin(w2*t) + ... + An(t)s...

alrededor de 1 año ago | 0 answers | 0

Question

convolution of two function

I have two functions as below: t = 0 : pi/180 : pi; f = exp(-t/3) .* (sin(2*t) + 2*sin(4*t) + 0.4*sin(2*t).*sin(40*t)); h = 1...

más de 1 año ago | 2 answers | 0

Question

selection of n disticnt vector

I have a vector A like A = 1 : 10 I want to make two distinc vector of length 3 such thta no array be in common between these ...

más de 1 año ago | 1 answer | 0

Question

How to sum columns of a matrix in MATLAB in specified number of columns?

I have a matrix A of size 2500*500. I want to sum each 10 columns and get the result as a matrix B of size 2500*50. that is, the...

más de 1 año ago | 2 answers | 0

Question

images in MATLAB help

Dear Frieds, I am using MATLAB R2018a on windows 10 operting system. But,whenever I search somthing in MATLAB help, the images ...

más de 1 año ago | 0 answers | 0

Question

Over-determined system

Dear Friends, I want to solve an over-determined system in the form of max(abs(A*x)) = B; size(A) = n by m size(x) = m by 1 ...

más de 1 año ago | 0 answers | 0

Question

Over-determined system of equations

Dear friends, I need to solve a system of over-determined equations as follow: max(abs(A11*x1 + A12*x2 + ... + A1m*xm)) = B1 ...

más de 1 año ago | 0 answers | 0