Answered

Multiple plots not working on the simulink spring mass model

This one again? https://www.mathworks.com/matlabcentral/answers/646918-my-simulink-model-seems-to-not-receiving-proper-variable...

Multiple plots not working on the simulink spring mass model

This one again? https://www.mathworks.com/matlabcentral/answers/646918-my-simulink-model-seems-to-not-receiving-proper-variable...

3 månader ago | 0

Answered

Insert degree symbol in axis title.

title('9^oE') text(0.5,0.5,'9^oE') xticklabels({'0^oE','1^oE'}) doc title search for "superscript"

Insert degree symbol in axis title.

title('9^oE') text(0.5,0.5,'9^oE') xticklabels({'0^oE','1^oE'}) doc title search for "superscript"

3 månader ago | 0

Answered

Data type work vector name must less than 31 characters long

Assume you are using base workspace as data source, could run this in Command Window and inspect the "data type" property value?...

Data type work vector name must less than 31 characters long

Assume you are using base workspace as data source, could run this in Command Window and inspect the "data type" property value?...

3 månader ago | 0

Answered

Creating a vector from a set of coordinates

You mean like this? There is really no need to do this. Please explain the need. x = [10.1, 5.4, 7.3]; y = [2.3, 7.4, 8.8]; i...

Creating a vector from a set of coordinates

You mean like this? There is really no need to do this. Please explain the need. x = [10.1, 5.4, 7.3]; y = [2.3, 7.4, 8.8]; i...

4 månader ago | 0

Answered

Replace loop with more efficient procedure to make it faster

Would this give you a clue? t1=1:3; t2=(1:4)'; flag=(t1==t2)

Replace loop with more efficient procedure to make it faster

Would this give you a clue? t1=1:3; t2=(1:4)'; flag=(t1==t2)

4 månader ago | 1

| accepted

Answered

MATLAB path linked to last user account for designated computer license installed on Windows 10 device

There is no problem with the installation. No one should modify the build-in pathdef.m. Instead, everyone should use a short-c...

MATLAB path linked to last user account for designated computer license installed on Windows 10 device

There is no problem with the installation. No one should modify the build-in pathdef.m. Instead, everyone should use a short-c...

4 månader ago | 0

| accepted

Answered

Unable to do Modeling simulink for MAB and JMAAB

Model Advisor, by products, Simulink, modeling standards, MAB It requires Simulink Check toolbox

Unable to do Modeling simulink for MAB and JMAAB

Model Advisor, by products, Simulink, modeling standards, MAB It requires Simulink Check toolbox

4 månader ago | 1

| accepted

Answered

How to make the value in Data Store Memory global

The example is here. https://www.mathworks.com/help/simulink/ug/using-global-data-with-the-matlab-function-block.html Most like...

How to make the value in Data Store Memory global

The example is here. https://www.mathworks.com/help/simulink/ug/using-global-data-with-the-matlab-function-block.html Most like...

4 månader ago | 1

Answered

Modify the storage class in the data dictionary programmatically

https://www.mathworks.com/help/simulink/ug/store-data-in-dictionary-programmatically.html

Modify the storage class in the data dictionary programmatically

https://www.mathworks.com/help/simulink/ug/store-data-in-dictionary-programmatically.html

4 månader ago | 0

Answered

How to programmaticaly set storage class (2020a) in Data Store Memory ?

if "DSM_Block" is a block handle, you can use get/set if "DSM_Block" is a block path, use set_param/get_param

How to programmaticaly set storage class (2020a) in Data Store Memory ?

if "DSM_Block" is a block handle, you can use get/set if "DSM_Block" is a block path, use set_param/get_param

4 månader ago | 0

Answered

Error:Brace indexing is not supported for variables of this type.

Run "dbstop if error" in MATLAB Command Window first and then run your optimization. Hopefully you will be able to see the line ...

Error:Brace indexing is not supported for variables of this type.

Run "dbstop if error" in MATLAB Command Window first and then run your optimization. Hopefully you will be able to see the line ...

4 månader ago | 0

| accepted

Answered

provide Input port data during simulation

https://www.mathworks.com/help/simulink/ug/signal-loading-techniques.html#bu110x_-1

provide Input port data during simulation

https://www.mathworks.com/help/simulink/ug/signal-loading-techniques.html#bu110x_-1

4 månader ago | 0

Answered

How to vary Gain in Simulink dependent on input's amplitude and phase during runtime ?

Use the Product block. The Gain block is an operation of multiplication, right?

How to vary Gain in Simulink dependent on input's amplitude and phase during runtime ?

Use the Product block. The Gain block is an operation of multiplication, right?

4 månader ago | 0

Answered

How to delete a node from DOM object?

use delete() and then write the xDoc to an XML file.

How to delete a node from DOM object?

use delete() and then write the xDoc to an XML file.

4 månader ago | 0

Answered

How to access Simulink Model callbacks like PreLoadFcn, InitFcn, StopFcn from matlab command window?

Model='f14'; open_system(Model) get_param(Model,'PreLoadFcn'); set_param(Model,'PreLoadFcn','YourFunctionName')

How to access Simulink Model callbacks like PreLoadFcn, InitFcn, StopFcn from matlab command window?

Model='f14'; open_system(Model) get_param(Model,'PreLoadFcn'); set_param(Model,'PreLoadFcn','YourFunctionName')

4 månader ago | 0

| accepted

Answered

Neglecting difference between two values if it is very small so that value1= value2

To compare element by element, abs(C) < Tolerance To compare the two vectors as a whole, all(abs(C) < Tolerance) or use isme...

Neglecting difference between two values if it is very small so that value1= value2

To compare element by element, abs(C) < Tolerance To compare the two vectors as a whole, all(abs(C) < Tolerance) or use isme...

4 månader ago | 0

Answered

How to loop through structure with words?

fn=fieldnames(reflectance.nhy1); for k=1:length(fn) reflectance.nhy1.(fn{k}) end

How to loop through structure with words?

fn=fieldnames(reflectance.nhy1); for k=1:length(fn) reflectance.nhy1.(fn{k}) end

4 månader ago | 0

| accepted

Answered

write two inputs to interpreted MATLAB block

Specify as "mod1(u(1),u(2))". Look at the Help of the block.

write two inputs to interpreted MATLAB block

Specify as "mod1(u(1),u(2))". Look at the Help of the block.

5 månader ago | 0

| accepted

Answered

Why is the look-up table in Simulink must faster than the interp3 function in Matlab script?

Might it be that interp3() is a M-script function, not a built-in (or written in C) function? Try to specify all the optional ...

Why is the look-up table in Simulink must faster than the interp3 function in Matlab script?

Might it be that interp3() is a M-script function, not a built-in (or written in C) function? Try to specify all the optional ...

5 månader ago | 0

Answered

What does the Following mean in Simulink

That is the Index Vector block. "Ldq" is a vector. The above math is: Out1=In1*Ldq(2)/Ldq(1)

What does the Following mean in Simulink

That is the Index Vector block. "Ldq" is a vector. The above math is: Out1=In1*Ldq(2)/Ldq(1)

5 månader ago | 1

| accepted

Answered

Repeat a time based signal in Simulink (not using *.m script) / during Start of simulation based on number of repetitions

Repeating Sequence block

Repeat a time based signal in Simulink (not using *.m script) / during Start of simulation based on number of repetitions

Repeating Sequence block

5 månader ago | 0

| accepted

Answered

How can i have a loop in every step time in Simulink?

Use For Iterator Subsystem

How can i have a loop in every step time in Simulink?

Use For Iterator Subsystem

5 månader ago | 0

| accepted

Answered

Insufficient number of outputs from right hand side of equal sign to satisfy assignment

nonlcon() is a defined function so fun=@nonlcon should be enough. It might be easier if the function has only one return variabl...

Insufficient number of outputs from right hand side of equal sign to satisfy assignment

nonlcon() is a defined function so fun=@nonlcon should be enough. It might be easier if the function has only one return variabl...

5 månader ago | 0

Answered

theoretical framework of support for S-Functions

S-Function is used broadly. doc: web(fullfile(docroot, 'simulink/slref/sfunction.html')) example: open_system('sfundemos')...

theoretical framework of support for S-Functions

S-Function is used broadly. doc: web(fullfile(docroot, 'simulink/slref/sfunction.html')) example: open_system('sfundemos')...

5 månader ago | 0

Answered

error in repeating sequence

It's better to provide the error message. I assume the error is about the time data that you provied. There are duplicated val...

error in repeating sequence

It's better to provide the error message. I assume the error is about the time data that you provied. There are duplicated val...

5 månader ago | 0

Answered

Sizeof double float int etc

Look at the .bytes returned by whos() a=false(5); aInfo=whos('a') b=zeros(5); bInfo=whos('b')

Sizeof double float int etc

Look at the .bytes returned by whos() a=false(5); aInfo=whos('a') b=zeros(5); bInfo=whos('b')

5 månader ago | 0

Answered

Is There a Way to Find all Shadowed Functions on the matlabpath?

I am not aware of any direct method. On the other hand, Files=dir('**/*.m') will give you all the M-file names including all sub...

Is There a Way to Find all Shadowed Functions on the matlabpath?

I am not aware of any direct method. On the other hand, Files=dir('**/*.m') will give you all the M-file names including all sub...

5 månader ago | 0

| accepted