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

9 years ago | 0

| accepted

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

9 years ago | 0

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

9 years ago | 0

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

9 years ago | 0

| accepted

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

9 years ago | 0

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

9 years ago | 0

| accepted

Question


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

9 years ago | 0 answers | 0

0

answers

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

9 years ago | 0

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

9 years ago | 0

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

9 years ago | 2

| accepted

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

9 years ago | 0

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

9 years ago | 0

| accepted

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

9 years ago | 0

| accepted

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

9 years ago | 2

| accepted

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

9 years ago | 0

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

9 years ago | 0

| accepted

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

9 years ago | 0

| accepted

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

9 years ago | 0

| accepted

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

9 years ago | 0

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

9 years ago | 0

| accepted

Question


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

9 years ago | 1 answer | 0

1

answer

Solved


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

9 years ago