Answered

How to define a multivariable function (for instance an anonymous function) of a number of variables that varies according to the size of an array variable?

I would be you, I would use a vector input and then, you return a vector.

How to define a multivariable function (for instance an anonymous function) of a number of variables that varies according to the size of an array variable?

I would be you, I would use a vector input and then, you return a vector.

11 månader ago | 0

Answered

normalization cell array [1 -1]

oh I see that you are mixing cell arrays and arrays. With your feature structure, to access the -9 of your first line, you need ...

normalization cell array [1 -1]

oh I see that you are mixing cell arrays and arrays. With your feature structure, to access the -9 of your first line, you need ...

12 månader ago | 1

| accepted

Answered

installation guidance for matlab 2019b

you can only install the toolboxes you need. If you are using a user-based license, you can still install your toolboxes later w...

installation guidance for matlab 2019b

you can only install the toolboxes you need. If you are using a user-based license, you can still install your toolboxes later w...

12 månader ago | 1

Answered

How can I rename logsout signals on data inspector on Simulink?

When I want to do so, I use on my Simulink model data bus instead of vectors. So I can set a name per signal by setting a label ...

How can I rename logsout signals on data inspector on Simulink?

When I want to do so, I use on my Simulink model data bus instead of vectors. So I can set a name per signal by setting a label ...

12 månader ago | 0

Answered

Printing to MATLAB command window using a Python Function

I have never tried this but there is a MATLAB API for python (Calling MATLAB from Python). Than, there is a special way to get c...

Printing to MATLAB command window using a Python Function

I have never tried this but there is a MATLAB API for python (Calling MATLAB from Python). Than, there is a special way to get c...

12 månader ago | 0

Answered

Fitting data in x,y to a known function

If you have it, I would recommend to use the Curve Fitting Toolbox. You can give it the expected function and it fits the parame...

Fitting data in x,y to a known function

If you have it, I would recommend to use the Curve Fitting Toolbox. You can give it the expected function and it fits the parame...

12 månader ago | 0

Answered

Calculate the time-averaged value every 10 iterations

I'm trying to understand your question. I understand that every 10 iterations, you want to display the average computation time ...

Calculate the time-averaged value every 10 iterations

I'm trying to understand your question. I understand that every 10 iterations, you want to display the average computation time ...

12 månader ago | 1

| accepted

Answered

I Keep Getting Error "Matrix dimensions must agree"

If you are using *, than it is a matrix multiplication and the size of your matrices must be compatible. If you want to multipl...

I Keep Getting Error "Matrix dimensions must agree"

If you are using *, than it is a matrix multiplication and the size of your matrices must be compatible. If you want to multipl...

12 månader ago | 0

Answered

Is it possible to check logic on more than two things at the same time?

Oh, pay attention what you are using for symbols. Just a friendly reminder: && -> and condition, work only with scalars & -...

Is it possible to check logic on more than two things at the same time?

Oh, pay attention what you are using for symbols. Just a friendly reminder: && -> and condition, work only with scalars & -...

12 månader ago | 0

Answered

Index exceeds number of array elements (1)??

Base on your code, I see that at line 13 of ProgramCd, you create V as a scalar because you even ensure that Vi must be of size ...

Index exceeds number of array elements (1)??

Base on your code, I see that at line 13 of ProgramCd, you create V as a scalar because you even ensure that Vi must be of size ...

12 månader ago | 0

Answered

How can I define variable output size of Matlab function in Simulink?

I also experienced that problem. When using the MATLAB Function block, I learned to always define the size of the inputs and out...

How can I define variable output size of Matlab function in Simulink?

I also experienced that problem. When using the MATLAB Function block, I learned to always define the size of the inputs and out...

12 månader ago | 0

Answered

Create .exe file from GUI using MATLAB Coder

Hi Harryboy, to generate a exe-file from a MATLAB GUI, you need the MATLAB Compiler Toolbox. The MATLAB Coder can generate code...

Create .exe file from GUI using MATLAB Coder

Hi Harryboy, to generate a exe-file from a MATLAB GUI, you need the MATLAB Compiler Toolbox. The MATLAB Coder can generate code...

12 månader ago | 0

| accepted

Answered

Error using plot, vectors must be same length

I have a question of logic about what you want to plot. Because you want t plot with: x-axis: H, size 69x1 y-axis: c(:, 1), si...

Error using plot, vectors must be same length

I have a question of logic about what you want to plot. Because you want t plot with: x-axis: H, size 69x1 y-axis: c(:, 1), si...

12 månader ago | 0

Answered

how to plot with a or two breaking poing on x axis?

take a look at these File Exchange scripts: Break X Axis Break Y Axis

how to plot with a or two breaking poing on x axis?

take a look at these File Exchange scripts: Break X Axis Break Y Axis

12 månader ago | 0

| accepted

Answered

I want to control the variant subsystem using matlab commands/programming

You should follow the configure variant controls section of this page: Define, Configure, and Activate Variants

I want to control the variant subsystem using matlab commands/programming

You should follow the configure variant controls section of this page: Define, Configure, and Activate Variants

12 månader ago | 0

Answered

standalone MATLAB executable question

that's not at all a problem. If you don't have the exact same MATLAB version with the compiler toolbox, than, you will have to i...

standalone MATLAB executable question

that's not at all a problem. If you don't have the exact same MATLAB version with the compiler toolbox, than, you will have to i...

12 månader ago | 0

Answered

How do i generate a sound directed to one headphone?

try soundsc to do so.

How do i generate a sound directed to one headphone?

try soundsc to do so.

12 månader ago | 0

Answered

load global variable from startup.m

I clearly don't recommend your to do so. Instead, I would add some functions in your standard Matlab path which returns your con...

load global variable from startup.m

I clearly don't recommend your to do so. Instead, I would add some functions in your standard Matlab path which returns your con...

12 månader ago | 0

Answered

App designer, export an image to word

If you have the report generator, it would be the easiest way to fill a word document. Otherwise, you should use the COM server...

App designer, export an image to word

If you have the report generator, it would be the easiest way to fill a word document. Otherwise, you should use the COM server...

12 månader ago | 0

| accepted

Answered

Add resources to compile .m

Personnally, I try to always access the files which are encapsulated into my applications without the path. My advice: Use MAT...

Add resources to compile .m

Personnally, I try to always access the files which are encapsulated into my applications without the path. My advice: Use MAT...

nästan ett år ago | 1

Answered

How to run program on GPU

So the first step is to check whether you have the "Parallel Computing Toolbox" with: ver if the toolbox isn't in the list, th...

How to run program on GPU

So the first step is to check whether you have the "Parallel Computing Toolbox" with: ver if the toolbox isn't in the list, th...

ungefär ett år ago | 0

Answered

Change a variable in a function.

I never tried with global variables but, in your case, I would recommend you to set your A has an input. What I understand, all ...

Change a variable in a function.

I never tried with global variables but, in your case, I would recommend you to set your A has an input. What I understand, all ...

ungefär ett år ago | 0

Answered

State estimator & feedback

This forum is not here to do your homeworks. Take a look at these functions: ss pole ...

State estimator & feedback

This forum is not here to do your homeworks. Take a look at these functions: ss pole ...

ungefär ett år ago | 0

| accepted

Answered

while-loop condition - arrays equal within a tolerance

for you case, I understand that you want the maximum absolute difference being below a limit? In that case, the "stay in" condi...

while-loop condition - arrays equal within a tolerance

for you case, I understand that you want the maximum absolute difference being below a limit? In that case, the "stay in" condi...

ungefär ett år ago | 1

| accepted

Answered

Resolving Algebraic Loops in SIMULINK models

From my knowledge, the only way to solve an algebraic loop without affecting at all the model is to change your model to remove ...

Resolving Algebraic Loops in SIMULINK models

From my knowledge, the only way to solve an algebraic loop without affecting at all the model is to change your model to remove ...

ungefär ett år ago | 0

Answered

finding roots of equation in matlab

I would be you, I would check whether you don't have any home-made script named roots in your MATLAB path. If you have no idea ...

finding roots of equation in matlab

I would be you, I would check whether you don't have any home-made script named roots in your MATLAB path. If you have no idea ...

ungefär ett år ago | 1

Answered

I need a code for red tomato detection from plant

There is a paper about the tomato recognition here. I guess, once you have detected the tomatoes, it's not that difficult to get...

I need a code for red tomato detection from plant

There is a paper about the tomato recognition here. I guess, once you have detected the tomatoes, it's not that difficult to get...

ungefär ett år ago | 0

| accepted

Answered

Plot Unity Feedback System in MATLAB

If I understand correctly your question, you are trying to plot the step response of this function transfer: Right? Then, wh...

Plot Unity Feedback System in MATLAB

If I understand correctly your question, you are trying to plot the step response of this function transfer: Right? Then, wh...

ungefär ett år ago | 0

Answered

from excel file import variables into more mat file.

I would recommend you to read the whole table in excel in once with, for example readmatrix and then, to save it into the mat-fi...

from excel file import variables into more mat file.

I would recommend you to read the whole table in excel in once with, for example readmatrix and then, to save it into the mat-fi...

ungefär ett år ago | 0

Answered

how to change a 9 digit number to longitude?

I don't see any "simple" method. I would recommand you to use the following idea: % get each digit in char array digits = dec2...

how to change a 9 digit number to longitude?

I don't see any "simple" method. I would recommand you to use the following idea: % get each digit in char array digits = dec2...

ungefär ett år ago | 0