Réponse apportée
Wrong sized array from "To workspace"
Are you using a variable step solver in your model? If so, you'd need to change it to a fixed step solver.

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
How to save 'Scope' data in Simulink into WorkSpace to plot?
The saved/stored data in the workspace from the Scope block can be plotted and processed without any difficulty only if one can ...

plus de 2 ans il y a | 1

Réponse apportée
"Computer-Based Exercises for Signal Processing using MATLAB 5"
In general, MATLAB/Simulink package functions, and blocks are mostly forward compatible that means older versions would run in a...

plus de 2 ans il y a | 1

| A accepté

Réponse apportée
Why is loss() different from calculating misclassification error using predict()?
There is a small difference between loss() and predict() fcns. The difference of loss is coming from the calculation of loss fcn...

plus de 2 ans il y a | 0

Réponse apportée
Open .avi files on Mac
Check this 3rd party MATLAB functions to read avi files: https://www.mathworks.com/matlabcentral/fileexchange/18559-aviread h...

plus de 2 ans il y a | 0

Réponse apportée
How do I create a for loop with mutiple conditions in MATLAB?
1st of all, if you need to create if .. else .. end statement to compare scalars or signle value variables, for .. end loop is n...

plus de 2 ans il y a | 0

Réponse apportée
How to stop falling cube?
Here is the corrected code to halt the cube at the ground: % Define the size of the cube and the radius of the balls cube_size...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
how to clip a domain data from global data?
If understood your question correctly, what you want is to display your cropped data, right? If so, here is how it can be done:...

plus de 2 ans il y a | 0

Réponse apportée
Help with student grades categorization for ANOVA-n
The variable Grade needs to be numerical values - double or single, then it should work. Also, a small syntax correction with th...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
how to clip a domain data from global data?
Here are two ways to get it with two small corrections in your code: Way - 1. Just use load() without variable name assigning, ...

plus de 2 ans il y a | 0

Réponse apportée
Code wont extract from file
Use unzip() while reading your data files, since your files are achived. See the help doc: https://www.mathworks.com/help/matla...

plus de 2 ans il y a | 0

Réponse apportée
How to iterate over multiple outputs in a function
If understood your question correctly, here is one very simple example how to get it: INS = randi(25, 1,5); % Randomly gener...

plus de 2 ans il y a | 0

Réponse apportée
simple readtable() call throws error
1st of all, verify and make sure that if you're calling the correct file. You may have two different files with the same name bu...

plus de 2 ans il y a | 0

Réponse apportée
Problems Implementing ddesd with a system of equations.
Why you are not using the time span with a predefined time step, in call_osc_1BodyNE(), that would give you consistent time step...

plus de 2 ans il y a | 0

Réponse apportée
Plot imagesc with vector of irregular spacing
This is how you can get it: s = importdata('a.txt'); D = s(3:end, 1); n1 = s(1,1); n2 = s(1,2); max1 = s(2,2); ww = D(1...

plus de 2 ans il y a | 0

Réponse apportée
Findpeaks Change/Substitute
You can speficy the base signal around which to find peaks - see peak prominences DOC. To see and undertand or edit or write yo...

plus de 2 ans il y a | 0

Réponse apportée
assign name row to table
Here is a plain example how to rename row and column names in a table array: t1 = date; t2 = '01-June-2023'; t3 = '10-June-...

presque 3 ans il y a | 1

Réponse apportée
How to plot a surface curve with inequalities?
Note that 1st of all, in order to compare X vs. Y vs. Z, their size "MUST" match. Therefore, to make their size compatible, e.g....

presque 3 ans il y a | 0

| A accepté

Réponse apportée
What is diff. b/w fft and pspectrum command in Matlab?
Note that pspectrum() has an advatange that it can get twim and frequency diomain analysis in one graph that migh have of a good...

presque 3 ans il y a | 0

Réponse apportée
What is diff. b/w fft and pspectrum command in Matlab?
Here is a nice discussion: https://www.mathworks.com/matlabcentral/answers/597799-difference-between-fft-and-pspectrum

presque 3 ans il y a | 0

Réponse apportée
Phase shift correct estimation
Here is how to compute the phase difference between two signals: Pathf = 'Signal_Test_Data.txt'; data = flipud(load(Pathf)); ...

presque 3 ans il y a | 0

Réponse apportée
How much is an image brightened using imlocalbrighten?
You are talking about imlocalbrighten(), correct?! It is really straight forward to understand how to works and to what extend ...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
how to calculate the mean using loop
If I understood your question correctly, here is how it can be done: A = [1 2; 3 4]; % Matrix A B = [2 3; 5 6]; % Matrix...

presque 3 ans il y a | 0

Réponse apportée
How to expand dimension of a 2D array
M1 = randi(5, 6); Mnew(:,:,1)=M1; [row,col,Layer]=size(Mnew) %% Mnew is 6-by-6 - 2 % To be able to view/display here M1 = ra...

presque 3 ans il y a | 0

Réponse apportée
how to turn .m into .stl if i have already a .m file
use stlwrite - see DOC: y = 0:0.001:10; x = -pi:0.001:pi; [X, Y] = meshgrid(x,y); Z = Y.*sin(X); % drawing 3D image figur...

presque 3 ans il y a | 0

Réponse apportée
How to expand dimension of a 2D array
Yes, it is correct. It is 2D array (or matrix) but not 3D. You can create and test it with this: M = randi(15, 60); MM(:,:,1)=...

presque 3 ans il y a | 0

Réponse apportée
How to Create Routh Table of a 5th Degree System with 4 Uncertain Parameters?
Here are two sources from fileexchanges: DOC1 DOC2

presque 3 ans il y a | 1

| A accepté

Réponse apportée
Replace the Tab to Space in txt
1st, read the data using readtable() and then write it back to .txt or .csv file using writetable, e.g.: D = readtable('Data.tx...

presque 3 ans il y a | 1

| A accepté

Réponse apportée
x = [1 2 3 4 5]; y = [10 8 6 4 2]; plot(x, y); xlabel('X-axis'); ylabel('Y-axis'); title('Example Line Plot');
Based on your question's subject header, it can be stated that what you see in your plot is correct: % You are trying to get a ...

presque 3 ans il y a | 0

Réponse apportée
how i can fix this error?
As shown in your screenshot, fix these errors: % Err 1 text_analiza = [rezultat_ascii_corpus; 32;32;32 ...] %% Must be ...

presque 3 ans il y a | 0

Charger plus