Answered

Warnings for Non-existent Ports in a Matlab Function Block

If the S-function was generated in Real time workshop/Simulink coder you can right click MATLAB I1 and select Look under mask. Y...

Warnings for Non-existent Ports in a Matlab Function Block

If the S-function was generated in Real time workshop/Simulink coder you can right click MATLAB I1 and select Look under mask. Y...

bijna 8 jaar ago | 0

| accepted

Answered

Adding all the elements of a 1-d matrix/array in Simulink

Use the Add block with one single + in the "list of signs". See attached example.

Adding all the elements of a 1-d matrix/array in Simulink

Use the Add block with one single + in the "list of signs". See attached example.

bijna 8 jaar ago | 0

Answered

How to give an initial value to a variable in simulink "matlab function"

It looks like the reason for the compile error is that hitout may not be set at all, for example if hitin = -1. Change the el...

How to give an initial value to a variable in simulink "matlab function"

It looks like the reason for the compile error is that hitout may not be set at all, for example if hitin = -1. Change the el...

bijna 8 jaar ago | 0

Answered

help with vectors MatLab?

Your question is a bit unclear. If you want to create a vector H containing alternating 0's and 1's, starting and ending with 0 ...

help with vectors MatLab?

Your question is a bit unclear. If you want to create a vector H containing alternating 0's and 1's, starting and ending with 0 ...

bijna 8 jaar ago | 1

Answered

GUI set handles don't pass value

fM = get(hObject,'String') will return a string. To compare it to 16 in the if statement you need to convert it to a number. One...

GUI set handles don't pass value

fM = get(hObject,'String') will return a string. To compare it to 16 in the if statement you need to convert it to a number. One...

bijna 8 jaar ago | 0

| accepted

Answered

Character for the real numbers - MATLAB

\Re ------ Based on the comment below that \Re is not the desired character: It looks like you need to install the math...

Character for the real numbers - MATLAB

\Re ------ Based on the comment below that \Re is not the desired character: It looks like you need to install the math...

bijna 8 jaar ago | 0

| accepted

Answered

How to run program with .tmp extension in matlab

Rename the file (replace the dot before tmp with an underscore, for example). Matlab cannot handle dots in m-file names. The...

How to run program with .tmp extension in matlab

Rename the file (replace the dot before tmp with an underscore, for example). Matlab cannot handle dots in m-file names. The...

bijna 8 jaar ago | 0

| accepted

Answered

how to adjust the block parameter ?

If Fig7x18 is a simulink block: Right click on the block, select Block Properties. In the tab Callbacks there is a list named...

how to adjust the block parameter ?

If Fig7x18 is a simulink block: Right click on the block, select Block Properties. In the tab Callbacks there is a list named...

bijna 8 jaar ago | 0

Answered

<randum number generation

If we assume that the first day in the array also is the start of a week it is necessary to generate 52 random days during a 365...

<randum number generation

If we assume that the first day in the array also is the start of a week it is necessary to generate 52 random days during a 365...

bijna 8 jaar ago | 0

Answered

How to plot a function ?

function fx = myFunction(a,b) x=0:0.1:2; % Create the x vector with step size 0.1 fx = zeros(size(x)); % Initialize the fun...

How to plot a function ?

function fx = myFunction(a,b) x=0:0.1:2; % Create the x vector with step size 0.1 fx = zeros(size(x)); % Initialize the fun...

bijna 8 jaar ago | 0

Answered

Real - Time Simulink Data

To run a model in close to realtime you can for example use this: http://www.mathworks.com/matlabcentral/fileexchange/30953-simu...

Real - Time Simulink Data

To run a model in close to realtime you can for example use this: http://www.mathworks.com/matlabcentral/fileexchange/30953-simu...

bijna 8 jaar ago | 0

Answered

How can I remove the power of a matrix?

I made a script that allows you to print a matrix to the command window with a selected precision, see attached file. The scr...

How can I remove the power of a matrix?

I made a script that allows you to print a matrix to the command window with a selected precision, see attached file. The scr...

bijna 8 jaar ago | 0

| accepted

Answered

Help me download Matlab 2013b please. Its really urgent

# Click the MathWorks.com link on the top right of the Answers page. # Click on My Account on the top right # Click Get Licens...

Help me download Matlab 2013b please. Its really urgent

# Click the MathWorks.com link on the top right of the Answers page. # Click on My Account on the top right # Click Get Licens...

bijna 8 jaar ago | 0

Answered

What function does the following code perform?

The d can apparently be used instead of e for exponent number formats, i.e. the following are equal: 1d-8 1e-8 10^-8 ...

What function does the following code perform?

The d can apparently be used instead of e for exponent number formats, i.e. the following are equal: 1d-8 1e-8 10^-8 ...

bijna 8 jaar ago | 0

Answered

index error for find function

I misunderstood the question, removed my response but kept the answer to not lose the comments below.

index error for find function

I misunderstood the question, removed my response but kept the answer to not lose the comments below.

bijna 8 jaar ago | 0

Answered

transfer signals in simulink

If I understand your question correctly you could use From and Goto blocks. I would however strongly discourage the use of these...

transfer signals in simulink

If I understand your question correctly you could use From and Goto blocks. I would however strongly discourage the use of these...

bijna 8 jaar ago | 0

| accepted

Answered

how to get the values of each cell in the cell array?

According to the comment "i have to make some calculation.. i need to substact each element from the cell with its mean value": ...

how to get the values of each cell in the cell array?

According to the comment "i have to make some calculation.. i need to substact each element from the cell with its mean value": ...

bijna 8 jaar ago | 0

Answered

How to fix the error?

In your pasted code it seems like you have used the slightly tilted ’ instead of ' for the apostrophe (or whatever the correct n...

How to fix the error?

In your pasted code it seems like you have used the slightly tilted ’ instead of ' for the apostrophe (or whatever the correct n...

bijna 8 jaar ago | 0

| accepted

Answered

How can control the phase delay of the signal generated by "Pulse Generator" block externally?

If you have a limited range of number of samples that your signal should be delayed you could build a block for variable delay u...

How can control the phase delay of the signal generated by "Pulse Generator" block externally?

If you have a limited range of number of samples that your signal should be delayed you could build a block for variable delay u...

bijna 8 jaar ago | 0

| accepted

Answered

How can control the phase delay of the signal generated by "Pulse Generator" block externally?

If I understand your question correctly it could probably be solved by placing a "Variable time delay" block after the pulse gen...

How can control the phase delay of the signal generated by "Pulse Generator" block externally?

If I understand your question correctly it could probably be solved by placing a "Variable time delay" block after the pulse gen...

bijna 8 jaar ago | 0

Answered

How can I generate a vector of 19 numbers in such a way that all 19 numbers are repeated 10 times, but 10 consecutive numbers are not equal?

My suggestion is to start with any valid vector according to your constraints. In the example below I have chosen the most obvio...

How can I generate a vector of 19 numbers in such a way that all 19 numbers are repeated 10 times, but 10 consecutive numbers are not equal?

My suggestion is to start with any valid vector according to your constraints. In the example below I have chosen the most obvio...

bijna 8 jaar ago | 0

| accepted

Answered

Why is this script so slow and how can i make it faster?

In addition to Jos' answer, the most time consuming part of your code seems to be printing out p every time it is increased by o...

Why is this script so slow and how can i make it faster?

In addition to Jos' answer, the most time consuming part of your code seems to be printing out p every time it is increased by o...

bijna 8 jaar ago | 0

Answered

Error using strcat or horzcat

If I create one file for each of the functions (rowget.m and firstRecord.m), it seems to be working. I do not know the cause of ...

Error using strcat or horzcat

If I create one file for each of the functions (rowget.m and firstRecord.m), it seems to be working. I do not know the cause of ...

ongeveer 8 jaar ago | 0

| accepted

Answered

How to convert MATLAB variables to Simulink Parameters ?

There may be some better way to do it, but this works. The storage class below is the one I use when I need to make a parameter ...

How to convert MATLAB variables to Simulink Parameters ?

There may be some better way to do it, but this works. The storage class below is the one I use when I need to make a parameter ...

ongeveer 8 jaar ago | 0

| accepted

Answered

getting rid of empty cells in a cell array

First, check which cells that are empty using the function isempty. Since isempty does not accept cell arrays as input, you can ...

getting rid of empty cells in a cell array

First, check which cells that are empty using the function isempty. Since isempty does not accept cell arrays as input, you can ...

ongeveer 8 jaar ago | 2

| accepted

Answered

How can I change the folder to be browsed upon when pushbutton is clicked?

If it works like uigetfile, you should be able to pass the desired folder as an argument, [path,user_cance]=imgetfile('C:\U...

How can I change the folder to be browsed upon when pushbutton is clicked?

If it works like uigetfile, you should be able to pass the desired folder as an argument, [path,user_cance]=imgetfile('C:\U...

ongeveer 8 jaar ago | 0

| accepted

Answered

why a result changed, when i was repeated a neural network program?

When you restart Matlab, the random number generator is reset which is likely the reason that you can repeat the result after Ma...

why a result changed, when i was repeated a neural network program?

When you restart Matlab, the random number generator is reset which is likely the reason that you can repeat the result after Ma...

ongeveer 8 jaar ago | 0

Answered

How do I change my username in the license file?

You need to change the username in the mathworks license center and download the license file again. <https://www.mathworks.c...

How do I change my username in the license file?

You need to change the username in the mathworks license center and download the license file again. <https://www.mathworks.c...

ongeveer 8 jaar ago | 1