Réponse apportée
reading ASCII data in s-function from a file
Your overall approach looks good. I would suggest debugging the S-function so you can step through it. There are steps on how ...

presque 15 ans il y a | 0

Réponse apportée
Is it possible to evaluate current value of variable in base workspace from GUI w/o using evalin()?
Not sure if this will help you or not, but Simulink provides run-time objects that you can use to access block data during a sim...

presque 15 ans il y a | 0

Réponse apportée
Columnwise '-append'?
Could you simplify your input by creating the string first using MATLAB code and then use dlmwrite to add a single string? This...

presque 15 ans il y a | 0

| A accepté

Réponse apportée
Wavplay
When you switch t to being a vector, you can't store an entire vector into a single basic element y(n). You could do this in a s...

presque 15 ans il y a | 0

Réponse apportée
what's Simulink model sfundebug.mdl
Have you seen the Web site on this? <http://www.mathworks.com/support/tech-notes/1600/1605.html#gen_debugging> I would imagine...

presque 15 ans il y a | 1

| A accepté

Réponse apportée
how to speed up calculation
Have you tried another solver besides ode45? For instance, ode15s is helpful for stiff systems, and according to the documentat...

presque 15 ans il y a | 0

Réponse apportée
Plots of functions involving quadratic denomonator
The "x trick" you are using is actually the element-wise exponentiation. MATLAB is inherently a matrix language (MATrix LABorat...

presque 15 ans il y a | 0

| A accepté

Réponse apportée
Simulink Model Optimization
There is no way that I know of to split a single model's simulation over multiple threads, which is why I believe the simulation...

presque 15 ans il y a | 3

| A accepté

Réponse apportée
array for transfer function
I'm not sure if your question is a basic "how do I create arrays" question, or if you are more interested in performing the simu...

presque 15 ans il y a | 0

| A accepté

Réponse apportée
Problem with for loop
Forgive me if you have already thought of this, but couldn't you just keep track of the smallest answer found? Something like.....

presque 15 ans il y a | 1

Réponse apportée
syntax error
There doesn't seem to be anything wrong just based on your syntax. However, some things to think about... # Are all the pa...

presque 15 ans il y a | 1

| A accepté

Réponse apportée
frewind
I think you misspelled "textscan". You have "txtscan" there.

presque 15 ans il y a | 1

Réponse apportée
include files
When you use the mex function, you should be able to use the -I flag to specify the include directories. <http://www.mathwork...

presque 15 ans il y a | 0

| A accepté

Réponse apportée
gap adjustment in time series data
Here's a little example that has helped me in similar situations. >> x1 = [1 2 3 4 5] >> x2 = [5 4 3 2 1] >> xtot = [...

presque 15 ans il y a | 0

Réponse apportée
drawing bar graph
Some thoughts I had... Have you tried barh? >> barh([15 45]) That will cause the bars to start from x=0, which may not be w...

presque 15 ans il y a | 0

Réponse apportée
Subversion and mdl files
Hi Carlo, I'm not aware of a way to do this. However, an alternative would be to break apart your model into multiple .mdl f...

presque 15 ans il y a | 1

Réponse apportée
Refreshdata for plot in GUI Axes
For 3 weeks in you seem quite competent! :) One thought I just had is to try setting the 'ydata' property explicitly... ...

presque 15 ans il y a | 0

| A accepté

Réponse apportée
Solve an ODE with runge kutta method
Ah, the glory of state-space. First, make the substitution u = y' Then, you have a system of two equations u' = (1...

presque 15 ans il y a | 0

| A accepté

Réponse apportée
Building a Simulink Model using Second Order Differential Equations
Simulink can absolutely help you to model differential equations. The basic building block is the Integrator block, found in ...

presque 15 ans il y a | 0

| A accepté

Réponse apportée
Loading an image using a GUI in matlab
When using GUIDE, the process for this is typically as follows. 1. In a callback, use uigetfile to grab file name and then load...

presque 15 ans il y a | 0

| A accepté

Réponse apportée
GUI interface with arduino
Disclaimer - I've used Arduinos in the past, but never used the MATLAB Arduino package. With that said, I'm not sure if this ...

presque 15 ans il y a | 0

| A accepté

Réponse apportée
SIMULINK
The Integrator block supports vector signals. So, try this... 1. Add an Integrator block to the model. Set the initial cond...

presque 15 ans il y a | 0

| A accepté

Réponse apportée
Plot 2 Graphs in GUI
Try directing the plot to the axes handle. For instance... >> ah1 = subplot(2,1,1); >> ah2 = subplot(2,1,2); >> pl...

presque 15 ans il y a | 0

Réponse apportée
How to focus on figure-window?
Using figure again should work: >> figure(Hfig1)

presque 15 ans il y a | 1

| A accepté

Réponse apportée
Help with Varargin
Actually you could use nargin to do this. Essentially, nargin tells you the number of the arguments, and you can use it add som...

presque 15 ans il y a | 1

Réponse apportée
How can I save data to a csv file from a simulation in simulink without use the Matlab workspace?
If you are just looking to have the .CSV file created by the end of the simulation, then you could use the model StopFcn to perf...

presque 15 ans il y a | 2

Réponse apportée
How can I save data to a csv file from a simulation in simulink without use the Matlab workspace?
Since you used the word "possible", I feel inclined to mention that you can write an S-function in C that could do this. I kn...

presque 15 ans il y a | 1

Réponse apportée
How to get transfer function from two vectors (input and response vectors)
Generally, you need to guess the order of the transfer function and then fit the data to it as best you can. The System Ident...

presque 15 ans il y a | 1