Réponse apportée
How to fill certain portion a plot
Use the Matlab function *patch* .

environ 12 ans il y a | 0

Réponse apportée
How to remove seasonal component from a time series using filter??
There's an example in the MATLAB documentation that explains how to do it. Just search for "Seasonal Adjustment Using a Stable S...

environ 12 ans il y a | 0

Réponse apportée
Saving the .mat file using for loop
You use the same file name for all ten samples. So Matlab overrides the file in every iteration and you end up with one saved sa...

environ 12 ans il y a | 5

| A accepté

Réponse apportée
Insert Chart in Excel with Excel data with Matlab
Matlab cannot find the Excel file. Make sure that your path and file name are correct.

environ 12 ans il y a | 0

Réponse apportée
calculate values from different matrices
Task 1: m = size(U,2); v = cell(m,1); for k = 1 : m v{k} = find(U(:,k) > 0); end Task 2: I don't understa...

environ 12 ans il y a | 0

| A accepté

Réponse apportée
How can I write matlab code for summation equation for the file attached. Pls help.
P(i,k) = 0; for j = 1 : N + M if (j ~= i) P(i,k) = P(i,k) + (1 - 2*B(i,j)*P(j,k) - B(i,o)) - b(i); end...

environ 12 ans il y a | 1

| A accepté

Réponse apportée
Help me how to calculate sum of series ?
n = 1 : 10^6; sum(((n+1)./n).^n./n.^2) sum((sqrt(n+1) - sqrt(n-1))./n.^(3/4))

environ 12 ans il y a | 1

Réponse apportée
Generation of random numbers
You use the correct method. When your range is from 10^(-4) to 10^4 it is quite normal that values below 10^(-1) are very, rare....

environ 12 ans il y a | 0

Réponse apportée
Extra term in "min" function in while loop
The min function compares the vector DC1(:,450:Xep) to the scalar DC1(1,j). The result is a vector that is identical to DC1(:,45...

environ 12 ans il y a | 1

| A accepté

Réponse apportée
Finding x & y-values that maximize an expression!!!!
You can use the fminsearch function because maximizing J is the same as minimizing -J. That is why there is no optimizing functi...

environ 12 ans il y a | 0

| A accepté

Question


How print a GUI to pdf with good quality?
I want to print a GUI to pdf. I use the following code: print(f, '-dpdf', 'Filename.pdf') where f is the handle of the G...

environ 12 ans il y a | 1 réponse | 1

1

réponse

Réponse apportée
Count Peaks, csv-files
You probably cannot open the files because the folder is not on the MATLAB search path. In your code add the following line at t...

environ 12 ans il y a | 0

Réponse apportée
How to replace/exlude certain values from data array/plot
The problem is that the values are probably not exactly 1.0E-30 but something like 0.9876E-30 or 1.0003E-30. That is why your co...

environ 12 ans il y a | 0

Réponse apportée
Adding outlier to a matrix
Actually you answered your question yourself. Instead of the mean I would use the maximum value of the matrix. Multiply that num...

environ 12 ans il y a | 0

Réponse apportée
how can i use variable instead of constant to get data from mysql database?
Your syntax is wrong. Try the following: id = 1; qry = sprintf('Select fname From mydb.myface WHERE id = %d', id);

environ 12 ans il y a | 1

| A accepté

Réponse apportée
How can I evaluate the result of robust regression?
It is true, you cannot calculation the R-square of the robust regression, but you can do something similar: I would use the weig...

environ 12 ans il y a | 0

Réponse apportée
varience of portfolio without financial toolbox
The variance of a portfolio is defined as w * C * w', where w is the vector (dimensions: 1 x N) with the portfolio weight and C ...

environ 12 ans il y a | 0

Réponse apportée
matrix computations in the loop as cell.
In the loop you define AA and br as cell arrays. So, if you want to merge them, use [br{1},AA{1}] and [br{2},AA{2}];

environ 12 ans il y a | 0

| A accepté

Réponse apportée
Undefined function or variable
The syntax you used is not correct. You can only assign values to variables, not to transformed variables. You have to do your c...

environ 12 ans il y a | 2

| A accepté

Question


Problems with Matlab Compiler
I have two problems with the compiler: (1) whenever I compile a m-file using the mcc command I get a warning: "Function display ...

environ 12 ans il y a | 2 réponses | 0

2

réponses

A résolu


Counting Sequence
Given a vector x, find the "counting sequence" y. A counting sequence is formed by "counting" the entries in a given sequence...

plus de 13 ans il y a

A résolu


Replace NaNs with the number that appears to its left in the row.
Replace NaNs with the number that appears to its left in the row. If there are more than one consecutive NaNs, they should all ...

plus de 13 ans il y a

A résolu


Swap the input arguments
Write a two-input, two-output function that swaps its two input arguments. For example: [q,r] = swap(5,10) returns q = ...

plus de 13 ans il y a

A résolu


Generate a random matrix A of (1,-1)
Input n: is an positive integer which serves as the dimension of the matrix A; Output: A=(Aij),where each entry Aij is either...

plus de 13 ans il y a

A résolu


Sort a list of complex numbers based on far they are from the origin.
Given a list of complex numbers z, return a list zSorted such that the numbers that are farthest from the origin (0+0i) appear f...

environ 14 ans il y a

A résolu


Reverse the vector
Reverse the vector elements. Example: Input x = [1,2,3,4,5,6,7,8,9] Output y = [9,8,7,6,5,4,3,2,1]

environ 14 ans il y a

A résolu


Summing digits
Given n, find the sum of the digits that make up 2^n. Example: Input n = 7 Output b = 11 since 2^7 = 128, and 1 + ...

environ 14 ans il y a

A résolu


Determine whether a vector is monotonically increasing
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...

environ 14 ans il y a

A résolu


Cell joiner
You are given a cell array of strings and a string delimiter. You need to produce one string which is composed of each string fr...

environ 14 ans il y a

A résolu


Too mean-spirited
Find the mean of each consecutive pair of numbers in the input row vector. For example, x=[1 2 3] ----> y = [1.5 2.5] x=[1...

environ 14 ans il y a

Charger plus