Risposto
Simulink Real-Time (SLRT) and external mode: slow update
Hello Gijs, Basically, there is not much that you can do about this in simulink. The more data that has to be transferred in ...

circa 8 anni fa | 0

| accettato

Risposto
My Simulink model is creating to many samples, how can I solve this?
Basically, your simulink model is solving differential equations. If you make the step-size too large as you can do with fixed-s...

circa 8 anni fa | 0

Risposto
Can simulink tell me how much storage space on my Arduino is used?
Hi, Simulink shows you the memory details after you've built the model onto the arduino UNO (also works on other verions). Ju...

circa 8 anni fa | 0

Risposto
how to store a matrix in variables
I think this is what you want: input_vector=[ 1 2 3 4 5 6 7 8 9 10]; for i=1:M p(i)=input_vector(i); end ...

circa 8 anni fa | 0

| accettato

Risposto
why does the PI controller not give an output when its inputs are gotten from a calculated value rather than a gen?
The information provided is rather limited, but I'm assuming that you removed the generator from your loop and replaced it with ...

circa 8 anni fa | 0

Risposto
Change column and row
Hello, You can swap columns and rows quite easily in matlab. For example: given matrix : matrix=[1 2 3 4 5;6 7 8 9 10...

circa 8 anni fa | 0

| accettato

Domanda


Unable to run simulink dsp FFT block on target pc using simulink real-time.
Hello, I am trying to do a real-time FFT operation on my target pc. I can run many different sorts of models using my set-up....

circa 8 anni fa | 0 risposte | 0

0

risposte

Risposto
About updating value of handles whithin loop
Matlab GUI's use callbacks to handle the button interrupts. However, the callbacks cannot interrupt each other. Matlab use a seq...

oltre 8 anni fa | 0

Risposto
Arduino Support Package: Reading PWM From Digital Pin
Hi Elliot, I'm currently dealing with similar issues in Simulink. What I've noticed is that matlab does not directly support r...

oltre 8 anni fa | 0

Risposto
How to use relative path to use matlab file in another computer
You can use .\<folder_name>. The '.\' denotes that the current folder should contain the specified folder. So, having the code i...

oltre 8 anni fa | 2

| accettato

Risposto
Slow performance using polyfit on large arrays - how to speed up?
I don't believe the problem is that the for loop itself is slow. However, you have a tremendous amount of loops. If the opera...

oltre 8 anni fa | 0

Risposto
Variable size of inline parameters
I solved it myself by using an empty variable container of size 100x1. I later fill up the container with the number of variable...

oltre 8 anni fa | 0

| accettato

Risposto
I am newbei matlab coder. i want to put a limit range in gui edit text and also want to update this value in simulink model i dit it but the value didn't update when i enter the value in edit text????? Any help is appreaciable....
str = get(hObject,'String'); newValue = str2double(str); % Do the change if it's valid if ~isnan(newValue)&& newVal...

oltre 8 anni fa | 0

| accettato

Risposto
Dear sir, How can I link between two interface or three interface of GUI? to make it more friendly user.
This actually quite a complex problem, with a very simple solution. I've encountered the same problem a couple of years ago and...

oltre 8 anni fa | 2

| accettato

Risposto
Open MATLAB file from another directory
I'm not sure I fully understand your question, but I think you mean just to load an image that is not on your current path. T...

oltre 8 anni fa | 0

Risposto
Hello guys, i have a push button and I want to laod m-file when I press it, please answer ;)
under the callback of the button in the code of that gui, put something like this: evalin('base','<your_m_file>') This w...

oltre 8 anni fa | 0

| accettato

Risposto
How do I create an iterated or recursive formula that includes the product of a sequence?
Hello, there are a number of errors in this code, but all easy enough to fix. I can see that you tried to make 2 loops in 1,...

oltre 8 anni fa | 0

| accettato

Risposto
Error in port widths or dimensions.
Hello Leo, It is difficult to see from the pictures, but it looks like you have predefined the sizes of your signals. The dim...

oltre 8 anni fa | 0

| accettato

Risposto
Checking for Singularities in Simulink Model
Hello Vicente, Usually these errors occur when the input to an integrator block has a slope of inf. Since it happens at tim...

oltre 8 anni fa | 0

Risposto
Want to remove 'noise' from a matrix.
If input is a non-negative single column then you can use the following simple filter: FilterValue=20; input(input<F...

oltre 8 anni fa | 0

| accettato

Domanda


Variable size of inline parameters
I have made a standalone application out of a Simulink model using the Simulink coder. In this model I have a selection of inli...

oltre 8 anni fa | 1 risposta | 0

1

risposta

Risolto


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

oltre 8 anni fa