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

casi 3 años hace | 0

| aceptada

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

casi 3 años hace | 1

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

casi 3 años hace | 1

| aceptada

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

casi 3 años hace | 0

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

casi 3 años hace | 0

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

casi 3 años hace | 0

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

casi 3 años hace | 0

| aceptada

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

casi 3 años hace | 0

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

casi 3 años hace | 0

| aceptada

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

casi 3 años hace | 0

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

casi 3 años hace | 0

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

casi 3 años hace | 0

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

casi 3 años hace | 0

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

casi 3 años hace | 0

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

casi 3 años hace | 0

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

casi 3 años hace | 0

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

casi 3 años hace | 1

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

casi 3 años hace | 0

| aceptada

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

casi 3 años hace | 0

Respondida
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

casi 3 años hace | 0

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

casi 3 años hace | 0

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

casi 3 años hace | 0

| aceptada

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

casi 3 años hace | 0

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

casi 3 años hace | 0

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

casi 3 años hace | 0

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

casi 3 años hace | 0

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

casi 3 años hace | 1

| aceptada

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

casi 3 años hace | 1

| aceptada

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

casi 3 años hace | 0

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

casi 3 años hace | 0

Cargar más