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

7 years ago | 1

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

7 years ago | 0

| accepted

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

7 years ago | 0

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

7 years ago | 0

| accepted

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

7 years ago | 2

| accepted

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

7 years ago | 0

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

7 years ago | 0

| accepted

Answered
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)

7 years ago | 0

Answered
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,:)=[];

7 years ago | 0

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

7 years ago | 0

| accepted

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

7 years ago | 0

| accepted

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

7 years ago | 0

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

7 years ago | 1

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

7 years ago | 0

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

7 years ago | 0

| accepted

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

7 years ago | 0

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

7 years ago | 3

| accepted

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

7 years ago | 0

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

7 years ago | 1

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

7 years ago | 0

| accepted

Answered
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().

7 years ago | 0

| accepted

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

7 years ago | 0

Answered
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

7 years ago | 0

| accepted

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

7 years ago | 0

| accepted

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

7 years ago | 1

| accepted

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

7 years ago | 1

| accepted

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

7 years ago | 0

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

7 years ago | 0

Answered
How do I convert output file (.exec) to .mat file?
Don't bother. Just run "save MyMatFile" on your server computer.

7 years ago | 0

| accepted

Load more