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

2 years ago | 0

| accepted

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

2 years ago | 1

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

2 years ago | 1

| accepted

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

2 years ago | 0

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

2 years ago | 0

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

2 years ago | 0

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

2 years ago | 0

| accepted

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

2 years ago | 0

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

2 years ago | 0

| accepted

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

2 years ago | 0

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

2 years ago | 0

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

2 years ago | 0

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

2 years ago | 0

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

2 years ago | 0

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

2 years ago | 0

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

3 years ago | 0

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

3 years ago | 1

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

3 years ago | 0

| accepted

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

3 years ago | 0

Answered
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

3 years ago | 0

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

3 years ago | 0

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

3 years ago | 0

| accepted

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

3 years ago | 0

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

3 years ago | 0

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

3 years ago | 0

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

3 years ago | 0

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

3 years ago | 1

| accepted

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

3 years ago | 1

| accepted

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

3 years ago | 0

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

3 years ago | 0

Load more