Beantwortet
How do we keep Simulink Signal definitions and Bus Element definitions in sync?
Use Simulink.Bus.createObject(model,blocks) to create the bus object once all signals are defined, instead of define the bus obj...

mehr als 7 Jahre vor | 0

Beantwortet
saving 3 dimensional single data in an Excel file
write each page to each sheet for k=1:size(data,3) xlswrite('Book1.xlsx',data(:,:,k),k) end This will run xlswrite() k times...

mehr als 7 Jahre vor | 1

Beantwortet
Get list of libraries blocks that have "changes" in a model
That is called parameterized library links. I couldn't find a way to get the list using find_system(). You could run Model Advis...

mehr als 7 Jahre vor | 0

| akzeptiert

Beantwortet
Error using grid. Too many input arguments.
params.grid has 3 'on' in it.

mehr als 7 Jahre vor | 0

Beantwortet
How to revert changes in data dictionary
discardChanges(dictionaryObj) web(fullfile(docroot, 'simulink/slref/simulink.data.dictionary.discardchanges.html'))

mehr als 7 Jahre vor | 0

| akzeptiert

Beantwortet
can I release the MATLAB Compiler-generated stand-alone to public?
Yes. royalty-free! web(fullfile(docroot, 'compiler/product-description.html'))

mehr als 7 Jahre vor | 2

| akzeptiert

Beantwortet
How do I avoid "Signal Label Mismatch" warnings when using library blocks in several places?
Don't lable the output inside the library block. That is the only solution if you don't want to disable the warning. You can lab...

mehr als 7 Jahre vor | 0

Beantwortet
how can i assign a variable existing in the workspace to a char ?
label=1; X='label'; y=evalin('base',X); And wait for comments critizing this method.

mehr als 7 Jahre vor | 0

| akzeptiert

Beantwortet
How can i change the size of this 3D matrix?
use this example: a=rand(2,3,10); size(a) b=repmat(a,2,2); size(b)

mehr als 7 Jahre vor | 0

Beantwortet
Referencing variables in an array
If you want to remove the [1 2 4]th row of a matrix x=[1 2 4]; a=magic(6); a(x,:)=[];

mehr als 7 Jahre vor | 0

Beantwortet
regress error, number of rows
Switch your X and Y. Read the help of regress()

mehr als 7 Jahre vor | 0

| akzeptiert

Beantwortet
Error using tf (transfer function)
run "which -all tf" to find out

mehr als 7 Jahre vor | 0

| akzeptiert

Beantwortet
How to execute multiple commands at once
You just need to change the first line to below and save it as MyCal.m. function output=MyCal(input) You function name woul...

mehr als 7 Jahre vor | 0

Beantwortet
How to suppress the output of an mfile?
Nothing is wrong except the variable "Player_Numbers" mismatches "Player_numbers" with the capital "N". That is why it is so ha...

mehr als 7 Jahre vor | 1

Beantwortet
how to activate the matlab license
https://www.mathworks.com/matlabcentral/answers/103563-why-do-i-receive-license-manager-error-114

mehr als 7 Jahre vor | 0

Beantwortet
How can I do setdiff() between 2 arrays row by row without a loop?
While your result shows that out is a 5x10 array, it is not guaranted in a generic case, because if you do setdiff() row by row ...

mehr als 7 Jahre vor | 0

| akzeptiert

Beantwortet
Function-Call generator does not accept Simulink Parameter
It's a parameter so spescify the sample time as mySimulinkParameter.

mehr als 7 Jahre vor | 0

Beantwortet
How to search multiple block types using find_system
Turn on regexp find_system(bdroot,'regexp','on','BlockType','Inport|outport')

mehr als 7 Jahre vor | 3

| akzeptiert

Beantwortet
Mass-spring-Damper system with external signal
Assume your data has 700 data points, you need to make your y a 700x2 matrix. The first column is the time step, the second col...

mehr als 7 Jahre vor | 0

Beantwortet
I have an individual licence, can I install it on multiple computers?
You can install and run the software on multiple computers, such as your desktop, lab, and laptop systems. Each installation is ...

mehr als 7 Jahre vor | 1

Beantwortet
Creating a table in matlab
Your data must be in a cell. You can do this. t=cell2table(cell(2)); t.Properties.VariableNames={'c1','c2'} t.Properties.RowN...

mehr als 7 Jahre vor | 0

| akzeptiert

Beantwortet
How to solve this batch process error: "Error using movefile The process cannot access the file because it is being used by another process" ?
You have the file open with fid=fopen(filename) run fclose() before you run movefile().

mehr als 7 Jahre vor | 0

| akzeptiert

Beantwortet
Is it possible to compare individual values of two vectors without a for loop?
a="abc"; b="Abc"; c=char(a)==char(b)

mehr als 7 Jahre vor | 0

Beantwortet
Matlab give wrong answer
A and B are different. Note the order of operation A=1-(Lm^2/Lr*Ls) is the same as A=1-((Lm^2)/Lr)*Ls

mehr als 7 Jahre vor | 0

| akzeptiert

Beantwortet
Accessing data in sequential work space names and writing to matrix
Var = S.(channel); % <-----issue is here

mehr als 7 Jahre vor | 0

| akzeptiert

Beantwortet
Fastest way to AND or OR together columns of a matrix
try result = all(testdata >= testref,2) It is quite faster. Elapsed time is 0.000445 seconds. Elapsed time is 0.000294 sec...

mehr als 7 Jahre vor | 1

| akzeptiert

Beantwortet
Simulink integrator block initial conditions
utilize the "External reset" (set as rising) and "Initial ocndition source" (set as external). Compare clock with t=3 and make ...

mehr als 7 Jahre vor | 1

| akzeptiert

Beantwortet
Where can I find the Argument Inport Simulink function block in the library?
just grab a new Simulink Function block.

mehr als 7 Jahre vor | 0

Beantwortet
Fastest way to AND or OR together columns of a matrix
It looks like depending on the size of the test data. If the data has 1e6 rows or less, sum() is faster. If the data has 1e7 row...

mehr als 7 Jahre vor | 0

Mehr laden