Respondida
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 ...

más de 1 año hace | 0

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

más de 1 año hace | 0

| aceptada

Respondida
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...

más de 1 año hace | 1

Respondida
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 ...

más de 1 año hace | 0

| aceptada

Respondida
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 ...

más de 1 año hace | 0

Respondida
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...

más de 1 año hace | 1

| aceptada

Respondida
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 ...

más de 1 año hace | 0

| aceptada

Respondida
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 ...

más de 1 año hace | 0

Respondida
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...

más de 1 año hace | 0

Respondida
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...

más de 1 año hace | 0

| aceptada

Respondida
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...

más de 1 año hace | 0

Respondida
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...

más de 1 año hace | 0

Respondida
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');...

más de 1 año hace | 0

Respondida
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] ...

más de 1 año hace | 2

Respondida
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...

más de 1 año hace | 0

Respondida
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...

más de 1 año hace | 0

| aceptada

Respondida
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 ...

más de 1 año hace | 0

Pregunta


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...

más de 1 año hace | 1 respuesta | 0

1

respuesta

Respondida
How to parse webpage JSON with temperatures in it.
You can use webread data = webread('https://api.meteo.lt/v1/stations/vilniaus-ams/observations/2023-06-21')

más de 1 año hace | 0

| aceptada

Respondida
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))

más de 1 año hace | 1

| aceptada

Respondida
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...

más de 1 año hace | 0

Respondida
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 ...

más de 1 año hace | 1

Respondida
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...

más de 1 año hace | 1

| aceptada

Respondida
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 : ...

más de 1 año hace | 0

| aceptada

Respondida
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 ...

más de 1 año hace | 0

Respondida
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...

más de 1 año hace | 0

| aceptada

Respondida
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 ...

más de 1 año hace | 0

| aceptada

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

más de 1 año hace | 0

Respondida
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...

más de 1 año hace | 0

Respondida
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...

más de 1 año hace | 0

Cargar más