Beantwortet
Delete rows from a table below a certain threshold
% Make up some example data Time = [1:10]'; Data = randn(10,1)*10; Table = cat(2,Time,Data) Threshold = 8; % Delete rows ...

12 Monate vor | 0

Beantwortet
FFT of bearing signal
In the attached code, I independently calculated the spectrum and compared to your calculation. It seems correct that your data ...

12 Monate vor | 0

| akzeptiert

Beantwortet
Use files from multiple folders
Yes, this is possible. You can either open the file using the full path to the file, for example im = imread('c:/mystuff/myvid...

12 Monate vor | 1

Beantwortet
Multiple dropdown inputs to narrow down file options in App Designer
I have attached a very simple example of how you might have the choice from one drop down menu change the possible choices from ...

12 Monate vor | 0

| akzeptiert

Beantwortet
trying to find a linear combination of matrixes in order to minimize the error between the linear combination and a target matrix
Here's a much more elaborate approach that can be modified to use a specific choice of matrix norm to be minimized. I would use ...

12 Monate vor | 0

Beantwortet
How to Implement 3rd order equation in matlab script?
I would do it something like this: function ival = ifun(theta,psi) % Define constants K2 = 25; % just for example, you put in...

12 Monate vor | 1

| akzeptiert

Beantwortet
Plotting array filtered by column?
So to make @Dyuman Joshi suggestion more concrete % Define example points A = [ 1.0000 1.0000 5.5000 1.0000 ...

etwa ein Jahr vor | 0

| akzeptiert

Beantwortet
Can I use ismembertol to find x,y coordinates that are close to each other?
If I am understanding what you are trying to do correctly I think this would do what you ask % Define some example coordinates ...

etwa ein Jahr vor | 0

Beantwortet
Search for files in directory, and use file name to input data
I think this example shows you how you could solve your problem % Find all of the relevant files % for this example I used Exc...

etwa ein Jahr vor | 0

Beantwortet
FIFO push all values as vector
I assume you are using the Queue block in the DSP System Toolbox in Simulink. If so you should supply the In port with a 5 ele...

etwa ein Jahr vor | 0

| akzeptiert

Beantwortet
Does the resample function do sinc interpolation before resampling?
It sounds like you are not resampling at a new frequency (the main purpose of resample) but instead creating samples of a delaye...

etwa ein Jahr vor | 0

Beantwortet
Error due to integration
I don't have your Excel file to test your code, but it looks like your problem is that the function given to integral, in your c...

etwa ein Jahr vor | 0

Beantwortet
How to rename identical variables under one common name?
Here's a general way to handle this. Note no need for all those if statements % Read in the data T = readtable('myData.xlsx');...

etwa ein Jahr vor | 0

Beantwortet
How to sort a cell array with respect to another cell array?
cellA = {'A', 'B', 'C', 'D'; 1, 2, 3, 4; 5, 6, 7, 8; 9, 1, 2, 3} cellB = {'C', 'A', 'D'; 1, 2, 3; 4, 5, 6; 7, 8, 9} [lia,lib] ...

etwa ein Jahr vor | 2

Beantwortet
Can't connect to database when the servername has a backslash in it
There may be a much cleaner way to deal with this. I'm not sure of the details of why you get this error. Are you on a windows m...

etwa ein Jahr vor | 0

Beantwortet
How to combine two graph from two function in another script?
Example Run script 1 % Script 1 % define first curve t1 = linspace(0,5); y1 = t1 + 2*t1.^2; Run script 2 % Script 2 % de...

etwa ein Jahr vor | 0

| akzeptiert

Beantwortet
How to find the intersection of two curves with the input data being two vectors?
Here is an example of one way to do this, you would have to put in the data for your curves, I just made up two curves for this ...

etwa ein Jahr vor | 0

Frage

How to implement arrays of events and listeners
I would like to be able to apply the event - listener methodology to obtain notification when specified, individual elements of...

etwa ein Jahr vor | 1 Antwort | 0

### 1

Antwort

Beantwortet
How to parse webpage JSON with temperatures in it.

etwa ein Jahr vor | 0

| akzeptiert

Beantwortet
How to dynamically change Simulink variables from MATLAB App Designer after simulation is initiated
You should be able to use set_param, for this purpose. So for example: set_param('mymodel/Gain','Gain',num2str(11))

etwa ein Jahr vor | 1

| akzeptiert

Beantwortet
P(t)=25sin(35t) euler method
Just glancing at your code I can see a number of errors: The variable s is not defined anywhere before you call this line of co...

etwa ein Jahr vor | 0

Beantwortet
Application of unique in the given code
I don't understand the details of your application, but there doesn't seem to be any problem with your use of unique here. What ...

etwa ein Jahr vor | 1

Beantwortet
Why do I get the error "too many output arguments"?
You have defined your function removeByGamma with only one output argument function nvec = removeByGamma(tR) but then you call...

etwa ein Jahr vor | 1

| akzeptiert

Beantwortet
Select a columns of a Matrix using Selector in Simulink
I think this is what you are trying to do, in the example below I select the first and the third column from the 3x6 matrix : ...

etwa ein Jahr vor | 0

| akzeptiert

Beantwortet
Ball bounce - State equations
First I'm assuming you were told to use simple Euler integration, e.g. y(n+1) = y(n) + dy/dt*tStep, otherwise you could use for ...

etwa ein Jahr vor | 0

Beantwortet
Align Signals Using Cross-Correlation
I think the problem you are having is that you must figure out how to sort the three signals to determine their arrival order so...

etwa ein Jahr vor | 0

| akzeptiert

Beantwortet
Function optimization meeting some conditions
In your case, you only have linear constraints, and bound constraints. So you don't need to use a function to define non-linear ...

etwa ein Jahr vor | 0

| akzeptiert

Beantwortet
You can use the 1-D Lookup Table Block to interpolate and extrapolate your values. It is in the Simulink Block Library under S...

etwa ein Jahr vor | 0

Beantwortet
i want to add switch blocks that switches my input
The problem you have is not with the switch, but with the "algebraic loop" that is formed when the switch changes state. Please...

etwa ein Jahr vor | 0

Beantwortet
Appy lsqcurvefit to multiple data sets with multiple parameters
Can you stack your data, so that if for example, using your terminology, Xdata_1,Xdata__,.. Ydata_1, Ydata_2,... Then fit Xdata...

etwa ein Jahr vor | 0