質問

How to get programmatically the currently active application?

Hi all, I want to develop a kind of automatic timetracking sw where every minute checks what is the currently active application...

約7年 前 | 0 件の回答 | 0

質問

Why does filtfilt provide me wrong results?

Hi all, I'm using filtfilt function to filter some signals since i would like to minimize the phase lag between the original...

7年以上 前 | 1 件の回答 | 0

質問

How to re-bin histograms with wider bins?

Hi all, How may I rebin an histogram in wider bins? Here an axample: 0-1 4 1-2 5 2-3 1 3-4 4 ...

7年以上 前 | 2 件の回答 | 0

質問

Bar plot with two Y-axes

Hi all, I need to plot data in a bar plot with two Y axis. Morevover the bar must be grouped, like in the following picture:...

7年以上 前 | 2 件の回答 | 0

質問

How to statistically detect "trend outliers"?

Hi all, I have several data collected by experiments that show the dependency between two variables, let's say x and y. I hav...

7年以上 前 | 0 件の回答 | 0

質問

How to avoid programmatically the data overlapping from legend in plots

Hi all, I programmatically plot many data as a bar plot. Unfortunately for plots where the last bar is very high legend ov...

7年以上 前 | 2 件の回答 | 0

回答済み

Tangent to two circles

Hi, the 3rd and 4th equations shouldn't be as the folliwing, right? p1^2-c1^2=r1^2 p2^2-c2^2=r2^2 you can use fsol...

Tangent to two circles

Hi, the 3rd and 4th equations shouldn't be as the folliwing, right? p1^2-c1^2=r1^2 p2^2-c2^2=r2^2 you can use fsol...

7年以上 前 | 0

回答済み

How to specify tolerance using linsolve ?

It is strongly suggested to normalize your design variables, contraints and so on in order to have a similar variation of the gr...

How to specify tolerance using linsolve ?

It is strongly suggested to normalize your design variables, contraints and so on in order to have a similar variation of the gr...

7年以上 前 | 0

| 採用済み

回答済み

fmincon's nonlinear equality constraints cannot be met?

Check your contranstrains with an optimization where your objective function is @(x)0 and with your real constraints. The solver...

fmincon's nonlinear equality constraints cannot be met?

Check your contranstrains with an optimization where your objective function is @(x)0 and with your real constraints. The solver...

7年以上 前 | 1

回答済み

Insert variable name into string

Try this: inputdlg(['Please enter the name for the' Name 'xls file: '],'Excel Name');

Insert variable name into string

Try this: inputdlg(['Please enter the name for the' Name 'xls file: '],'Excel Name');

7年以上 前 | 0

| 採用済み

回答済み

Using num2str inside the for loop

You got only 5 because you haven't used f as an array. Here the right code: firstDay = 1; lastDay = 5; for i=...

Using num2str inside the for loop

You got only 5 because you haven't used f as an array. Here the right code: firstDay = 1; lastDay = 5; for i=...

7年以上 前 | 1

回答済み

Indexing a 3D array with a vector

try this: x = [[1,2,3,4];[5,6,7,8];[2,8,9,7]]; y = [[1,3,5,3];[7,9,0,2];[2,4,5,4]]; z = [[2,4,6,6];[3,5,7,1]...

Indexing a 3D array with a vector

try this: x = [[1,2,3,4];[5,6,7,8];[2,8,9,7]]; y = [[1,3,5,3];[7,9,0,2];[2,4,5,4]]; z = [[2,4,6,6];[3,5,7,1]...

7年以上 前 | 0

回答済み

use any/all test with while loop in range 0:1:10

Hi, while loops until the condition is true, so you to change looping condition: grades = input('Please enter the...

use any/all test with while loop in range 0:1:10

Hi, while loops until the condition is true, so you to change looping condition: grades = input('Please enter the...

7年以上 前 | 0

| 採用済み

回答済み

fmincon is giving error

fmincon must be used for monoobjective optimization so it expect a scalar value instead in your code he gets four different valu...

fmincon is giving error

fmincon must be used for monoobjective optimization so it expect a scalar value instead in your code he gets four different valu...

7年以上 前 | 1

回答済み

print acsii characters in tabular format using char

try this: function mychar(y) if y > 129 disp('Please enter less than 129.') else x = char(uint8(y...

print acsii characters in tabular format using char

try this: function mychar(y) if y > 129 disp('Please enter less than 129.') else x = char(uint8(y...

7年以上 前 | 0

| 採用済み

質問

How to remove transient effect in the beginning of the filtered signal?

Hi all, I have to filter a signal with a low pass filter but the filtered data has strong spikes at its beginning and its en...

7年以上 前 | 2 件の回答 | 1

回答済み

How do I find non zero cells in a cell array?

Here an axample: testcell={0,1,1,0,1}; matcell=cell2mat(testcell); find(matcell==0)

How do I find non zero cells in a cell array?

Here an axample: testcell={0,1,1,0,1}; matcell=cell2mat(testcell); find(matcell==0)

7年以上 前 | 0

| 採用済み

質問

Concatenation of arrays of structure

Hi all I have to concatenate the field of an array of structure. Here a simple example: a=struct('a',[]); a(1).a...

7年以上 前 | 3 件の回答 | 0

質問

Problems in reading XLSX file

Hi all, I have some problems in reading xlsx files. I use the readtable command because I can get a structure where the fiel...

7年以上 前 | 0 件の回答 | 0

回答済み

How to get a vector from an excel sheet

xlsread can read a specific range so in case your range is a column you get a column array.

How to get a vector from an excel sheet

xlsread can read a specific range so in case your range is a column you get a column array.

7年以上 前 | 0

質問

How getting coordinates of geagraphical locations?

Hi, I have the following struct array. data=struct('Position',[],'Value',[]) data(1).Position='London'; data(...

7年以上 前 | 3 件の回答 | 1

質問

How to vectorize the following code

Hi all, I have the following code, is there any way to vectorize it? RMH(1).D=rand(20,4); RMH(2).D=rand(20,4); ...

7年以上 前 | 1 件の回答 | 0

質問

how to generate custom bin edges with internal.stats.histbins?

Hi all, I've used the distribution fitting toolbox through the GUI to get the probability distribution. To automate the proc...

7年以上 前 | 0 件の回答 | 0

質問

error with using filter

Hi all, I have to filter few signals and I wrote the following code: Fpass = 40; % Passband Frequency Fstop =...

7年以上 前 | 1 件の回答 | 0

回答済み

Simscape no solver block connected error

Each part must be connected to a solver block. If you have the solver error, probably you haven't rightly connected the eletron...

Simscape no solver block connected error

Each part must be connected to a solver block. If you have the solver error, probably you haven't rightly connected the eletron...

7年以上 前 | 0

回答済み

How to save workspace except for one structure field?

Probably there is a shorter way to do it, but this method works: a=1; b=1; c=1; vars=who; p=find(isme...

How to save workspace except for one structure field?

Probably there is a shorter way to do it, but this method works: a=1; b=1; c=1; vars=who; p=find(isme...

8年弱 前 | 0

質問

How to apply OR operation to a matrix?

Hi folk, I need to apply the OR operation to the column of a matrix. Here an example: a=[0 0 1; 0 1 1]; orMa...

8年弱 前 | 1 件の回答 | 0

質問

strfind: how to set a cell for the pattern?

Hi all, I need to set a cell as pattern for strfind without using a for. Here an example a={'1','2','3'}; b={'1','2'}...

8年弱 前 | 5 件の回答 | 0

質問

subplots destroys the axis properties

Hi all, I have to create a figure with a specific layout of subplots, but when I call the subplot for the second time all th...

8年弱 前 | 2 件の回答 | 0

回答済み

How can an engine model be simulated in the "crank angle - domain" instead of the "time - domain" in Simulink?

I don't know if it works, but you can try by parametrizing the time step and the simulation time in function of the engine speed...

How can an engine model be simulated in the "crank angle - domain" instead of the "time - domain" in Simulink?

I don't know if it works, but you can try by parametrizing the time step and the simulation time in function of the engine speed...

8年弱 前 | 0