Top 5% contributor
Found it. Just call this:
me = class(obj);
this gives the name of the created subclass. I call it in the constructor of t...
Answered 3 years ago
Hi, same problem here. Are there any suggestions yet? I tried an approach but then Matlab crashes... My "solution" and a descrip...
3 years ago
is it possible to do double or multiple indexing in matlab? E.g.
>> v = [1,2,5,7,9]
1 2 5 ...
Asked 4 years ago
I want to do online optimization in a simulink real-time environment. I dont have a plant model, the plant is in the 'rea...
Asked 3 years ago
I have access to a Windows 2003 R2 server with heaps of CPU-power and RAM. Problem: just one CPU is used. I tested it wit...
currently I am using simset to set the source and destination workspace. Since I wanted to know a bit more about this fun...
i am using greyest to estimate the parameters of a system. The initial state is also unknown therefore I use the option to ...
Asked 2 years ago
when a subclass calls a superclass, is there a way to get the name of the caller (subclass)?
I found two different methods to linearize a simulink model: linearize and linmod. Both can lin. the system at an operati...
I am pretty sure that it is not possible, but since I am not an expert I ask anyway: Is it possible to have a virtual bus...
it is just a minor problem, but it still annoys me: virtual buses are displayed as thin lines in my Matlab 2011b. What do...
I am executing a function that fills the base workspace. How can I clear the base workspace / stack without clearing the fu...
I know that constants are probably named so by a reason, but is it possible to reload or update them during a running ...
after the Simulink simulation I would like to have a structure that contains certain signal values. The simples way to...
are there any other programms than Matlab that can open the figure files (*.fig)? Something like Irfanview, Paint.NET....
I am using in Simulink the "Matlab Function" block. The function in there is "diff(u)" This is just an example, the orig...
I have written in Matlab a class that simulates the behavior of a certain object. During simulation just one function nee...
I am linearizing a system at a certain time. Is there an option to get the input and output values at this specified poin...
I execute a script that contains a loop to run simulations and plot the data in figures. The first run is very fast. Here...
I have Matlab 2013a installed with the parallel computing toolbox. When matlabpool is executed it takes about an hour until...
I just bought the DRV8312EVM motor control kit from TI. It is pretty easy to setup but now I am wondering if it can be co...
I am using a simulation that is started from matlab with the sim() command and is stopped by an assertion within the model....
I have a Simulink model with a Digital Filter and a system. The final states of the model are stored in xStart. When I ru...
your elements in Bonds are not aligned in a row they are aligned in a column. have a look at a and then at Bond, then you will s...
Answered 4 years ago
This could do it:
>> a = [1 1.1 1.2 1 0.9 1.3];
>> b = [diff(a) NaN];
0.1000 0.0909 -0.166...
Choose your country to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a location from the following list:
See all countries