Answered
The stateflow which is working fine for 24 hours is attached and the same stateflow when the transition time is reduced to seconds is not producing the desired output
The sample time on the fast stateflow chart is set to 360 seconds. So the first time it is allowed to update the Time has alrea...

4 years ago | 0

Answered
When I run my code, I keep getting this error: Unable to convert expression into double array."
You should use i for the imaginary number, instead of j. In your subs command you have not defined what w is. >> Gjw Gjw =...

4 years ago | 0

Answered
import large .csv file
If there is some kind of pattern to the content of 1366 columns, you could write a loop to add information to opts.VariableNames...

4 years ago | 0

Answered
i am not getting chaotic plot because of warning
Chaotic systems have behavior that is not well described using continuous and differentiable functions right? So a solver that ...

4 years ago | 0

Answered
Interpolation in time series for gaps in time series
There is the fillgaps function in the Signal Processing Toolbox for more intelligent filling. You may need to preprocess your d...

4 years ago | 0

Answered
How to index equally spaced chunks from a long signal?
If you can define an index vector with ones in the positions where you want to calculate the mean, then you can use the index ve...

4 years ago | 0

Answered
Build synchronous machine model from scratch
Amazon carries a number of books on computer architecture in electronic or hard copy formats. Here is one: https://www.amazo...

4 years ago | 0

Answered
Trigger at start of simulation
One way is using an Initial Condition block per my attached example. I use an enabled subsystem in the example because a trigge...

4 years ago | 0

Answered
How to plot breast tumor images in Matlab using CST simulation data?
Is the first column of your sample data Intensity/Color and then columns 2 and 3 are the X and Y range data? You probably want ...

4 years ago | 0

Answered
Simulink Project, internal files and source control
I have used Simulink Projects with GIT for a while and had few problems with it. The files in the resources folder should only ...

4 years ago | 0

Answered
Continue reading file after inner loop completes?
If feof returns true you are at the end of the file. You cannot read any more data.

4 years ago | 0

Answered
Create 3D images from acquired ultrasound data
See the article "3-D Volumetric Image Processing" in the MATLAB documentation. Or if you are displaying a series of 2D images a...

4 years ago | 0

| accepted

Answered
Can anyone please how can we append new sequence(Nsq) and new realizations(NR) values to CSV?Please check the code attached, Thank you so much!!
If the problem is that writematrix overwrites your output file on each call, then use the 'WriteMode' argument: writematrix(M, ...

4 years ago | 0

| accepted

Answered
interpolating data to different sample rate
You can use interp1 to interpolate, or resample, one signal onto the same set of time values as another.

4 years ago | 0

Answered
Using parsim with SIMULINK model containing c-mex s-functions
Alternatively, you can read data from a binary file using fopen and fread in an M file in MATLAB. Read each dataset into the MA...

4 years ago | 0

Answered
Gear Shifting System MATLAB Function
Here is a general article about hysteresis, which refers to the idea of having a different threshold to use depending on the dir...

4 years ago | 0

Answered
Displayin command just once for the n number of iterations
So something like this? if k == 480 disp("Hello World!") elseif k == 481 disp("Bye Bye World!") end You could ...

4 years ago | 0

| accepted

Answered
I am looking for any sample model for automated model generation of manufacturing processes using an Excel file as an input.
Here is a Mathworks article with many helpful resources. As you get started and have specific questions or problems please ask ...

4 years ago | 0

Answered
Run cmd faster and parallelly in background
Due to the overhead of launching and running CMD so many times, you may not gain much or it may run slower. After first optimiz...

4 years ago | 1

Answered
Get wrong answers with 2D Newton iteration method
There are a lot of really large numbers in these functions, leading to very steep gradient calculations. It may just not be num...

4 years ago | 0

Answered
Exclude the NaN, 0, empty and Inf values ​​from the analysis.
Vectorize your calculations using index vectors. For example: >> Test = [0 1 inf NaN] Test = 0 1 Inf NaN ...

4 years ago | 0

| accepted

Answered
Change of parameter in simulink result
If you double click on the scope block in the model to bring up the scope, go to the Tools menu to change the scaling. See the ...

4 years ago | 0

Answered
This question related indexing and loop , but i did not get why it need indexing?
This is the graph produced by your code. It looks like the answer for part B rather than part A. Your code is assuming the mod...

4 years ago | 0

Answered
I can't find the Ricardo software library in Simulink.
I do not find a reference to a Ricardo software library on the Mathworks website. If you know what it is, and where it is, then...

4 years ago | 0

Answered
int64 and uint64 inputs or outputs are supported only in Stateflow charts that use C as the action language.
If you right click in the chart, select properties from the popup menu, and then you can change the Action Language from MATLAB ...

4 years ago | 0

Answered
Create bus of type 1*2 struct
Simulink.Bus.createObject is mainly intended to create bus definitions to work with in the bus editor. Once you see your bus de...

4 years ago | 0

Answered
how to open the image extension .dat
Can your tool save to NII or NifTI format, then load it using niftiread in MATLAB?

4 years ago | 0

Answered
There is an error in drawing the graph!
Here you are drawing two lines: subplot(3,2,5); plot(x,px,x,pxt); %Ikki o'lchovli grafika title('КЕСИМДА АНИК ...

4 years ago | 0

Answered
How to clip image histogram for removing insignificant gray levels?
You can use gray2ind to map a grayscale image into a new image that makes more of the darkest colors pure black and more of the ...

4 years ago | 0

Answered
variables in c is input for a function running in matlab and print in c, how to
Use mex to build C code into a function callable in MATLAB. There is a lot of information and examples in the documentation.

4 years ago | 0

Load more