回答済み
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 ...

10年弱 前 | 0

| 採用済み

回答済み
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...

10年弱 前 | 0

回答済み
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...

10年弱 前 | 0

回答済み
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 ...

10年弱 前 | 0

| 採用済み

回答済み
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 ...

10年弱 前 | 0

回答済み
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...

10年弱 前 | 0

| 採用済み

質問


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

10年弱 前 | 0 件の回答 | 0

0

回答

回答済み
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...

約10年 前 | 0

回答済み
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...

約10年 前 | 0

回答済み
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...

約10年 前 | 2

| 採用済み

回答済み
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...

約10年 前 | 0

回答済み
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...

約10年 前 | 0

| 採用済み

回答済み
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...

約10年 前 | 0

| 採用済み

回答済み
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...

約10年 前 | 2

| 採用済み

回答済み
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...

約10年 前 | 0

回答済み
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...

約10年 前 | 0

| 採用済み

回答済み
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,...

約10年 前 | 0

| 採用済み

回答済み
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...

約10年 前 | 0

| 採用済み

回答済み
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...

約10年 前 | 0

回答済み
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...

10年以上 前 | 0

| 採用済み

質問


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

10年以上 前 | 1 件の回答 | 0

1

回答

解決済み


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

10年以上 前