Réponse apportée
How can I import multiple .CSV files in MATLAB and process the data of each file?
It looks like you are on the right track with your looping on the file names. It is a little confusing adding the data as an ad...

environ 5 ans il y a | 0

| A accepté

Réponse apportée
How to convert cell to a struct with fields and multiple dimensions?
I think this would do what you are looking for % example make up some data just to try it P_ungedeckt_h = cell(2,1); for k = ...

environ 5 ans il y a | 0

| A accepté

Réponse apportée
2 equations in one function matlab
When you called it did you call it with two output arguments? e.g. radius = 5 [A,C] = myfunction(radius) Also, you reassign t...

environ 5 ans il y a | 0

| A accepté

Réponse apportée
generate multiple text files from a matrix
While I was working on this I see you have already received an answer. This is probably similar to what Mathieu has already subm...

environ 5 ans il y a | 0

Réponse apportée
How to recover the original signal from a noisy signal?
You need to low pass filter the data and then downsample it. If you have the Signal Processing Toolbox you can do these togethe...

environ 5 ans il y a | 0

| A accepté

Réponse apportée
Function fitting on a set of data points
It seems like you are not using the parameters you just solved for when evaluating your function to plot it. Maybe you meant p...

environ 5 ans il y a | 2

Réponse apportée
How to generate a costant signal?
Here's an example that you can add to the bottom of your code %% Constant signal sigVal=3; % example value x_const = sigVal*o...

environ 5 ans il y a | 1

| A accepté

Réponse apportée
How to Remedy Matrix Dimensions Error
I think the + operator for strings was not available in 2012 you should instead concatenate the strings e.g. FM = [dir(fullfile...

environ 5 ans il y a | 1

| A accepté

Réponse apportée
Unable to perform assignment because the left and right sides have a different number of elements.
I'm sorry I don't have time to fully understand your code, from a quick look I think your problem may be in your function at lin...

environ 5 ans il y a | 0

Réponse apportée
Error using fmincon, Supplied objective function must return a scalar value.
I'm not quite sure about the details of your problem but I think you want to do something closer to this. Note the objective f...

environ 5 ans il y a | 0

Réponse apportée
Substitute s for jw in a transfer function
Hi, I think you mean that you define your transfer function using (you forgot the tf() in your example) G = tf([1 2],[3 4 5])...

environ 5 ans il y a | 0

| A accepté

Réponse apportée
how the series of 2 stable discrete-systems becomes unstable?
I think you are seeing some roundoff or other numerical issues. Higher order polynomials (in your case a 5th order polynomial) a...

environ 5 ans il y a | 0

| A accepté

Réponse apportée
Extracting values from Nyquist Diagram in a personalized way
Without seeing your whole code it is a little difficult to be sure what the problem is, but it is most likely that the range of ...

environ 5 ans il y a | 0

| A accepté

Réponse apportée
How to give my PI controller initial value?
If you want the inital output of your PI controller to be 1800 when the error signal is zero then set the initial value of the i...

environ 5 ans il y a | 0

Réponse apportée
New to matlab and not sure how to reduce to first order
Define y1 = y y2 = y' y3 = y'' % and then make a function f, for example put the code below into an m-file called f.m funct...

environ 5 ans il y a | 0

Réponse apportée
How do I update a variable in a nested loop?
If you want iter to increment inside of the inner loop you have to move the statement iter = iter+1; inside of the inner loop....

environ 5 ans il y a | 0

Réponse apportée
How to fix in Gauss formula
It looks like in your calculation of c in both the Jacobi and Gauss you should do a Matrix -vector multiply not an element by el...

environ 5 ans il y a | 0

| A accepté

Réponse apportée
How can I replace images inside a folder with another image from different folder?
If I understand what you are trying to do I think the copyfile function should do what you want Type doc copyfile on the comman...

environ 5 ans il y a | 0

| A accepté

Réponse apportée
How to create an array of files names from a structure created by 'dir' result?
This will put them into a cell array list = dir('*.txt') filenames = {list.name}

environ 5 ans il y a | 2

Réponse apportée
Correlation matrix graph using excel data
Get the data from the Excel worksheet into MATLAB matrices using readmatrix, then use MATLAB's corr function You can get docu...

environ 5 ans il y a | 0

Réponse apportée
How to combine two tables with measurements taken over the same range but different intervals?
Put the two sets of data into MATLAB timetables, then use the synchronize function to combine them

environ 5 ans il y a | 0

Réponse apportée
How can i start my systems response from 1 sec??
In Simulink, go to the Modeling tab, Modeling>Model Settings>Model Settings>Solver This will bring you to the Configuration Par...

environ 5 ans il y a | 0

| A accepté

Réponse apportée
How do i round to two decimals without zeros at the end
I think this might do what you want fprintf('Dog detected at second %0.2f\n',idx(:))

environ 5 ans il y a | 0

| A accepté

Réponse apportée
Dot indexing not supportedd
T = xlsread( ) returns an array of double values, not a table so T.xxx is not meaningful I suggest using readtable instead.

environ 5 ans il y a | 0

Réponse apportée
Breaking an algebraic loop
I usually put in a delay block with a relatively small value set for the one sample delay to break algebraic loops. If you use a...

environ 5 ans il y a | 0

Réponse apportée
How to find X value of given Y close to zero ?
Here's another approach that is maybe more obvious to understand x = [338.00 339.00 340.00 341.00 342.00 343.00] dat...

environ 5 ans il y a | 0

Réponse apportée
How to divide an n×2 matrix into the coordinates of n points and save them separately?
x = data(:,1) y = data(:,2)

environ 5 ans il y a | 1

Réponse apportée
How to display data from a table using fprintf?
fprintf ('The Maximum Number of Cases Are: %d on %f', X.DAILYCASES,X.DATE)

environ 5 ans il y a | 0

Réponse apportée
converting matrix to constant value in matlab function (Simulink)
Try a MATLAB Function block with the following, this worked for me function y = fcn(u,m) y = min(u(u>m));

environ 5 ans il y a | 0

| A accepté

Réponse apportée
Select a range of rows in Excel
You should be able to use MATLAB's readmatrix function, e.g data = readmatrix('myfile.xlsx','Range','90:233') or if the start ...

plus de 5 ans il y a | 1

Charger plus