Réponse apportée
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...

plus de 7 ans il y a | 1

Réponse apportée
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...

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
Error using grid. Too many input arguments.
params.grid has 3 'on' in it.

plus de 7 ans il y a | 0

Réponse apportée
How to revert changes in data dictionary
discardChanges(dictionaryObj) web(fullfile(docroot, 'simulink/slref/simulink.data.dictionary.discardchanges.html'))

plus de 7 ans il y a | 0

| A accepté

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

plus de 7 ans il y a | 2

| A accepté

Réponse apportée
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...

plus de 7 ans il y a | 0

Réponse apportée
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.

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
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)

plus de 7 ans il y a | 0

Réponse apportée
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,:)=[];

plus de 7 ans il y a | 0

Réponse apportée
regress error, number of rows
Switch your X and Y. Read the help of regress()

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
Error using tf (transfer function)
run "which -all tf" to find out

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 7 ans il y a | 0

Réponse apportée
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...

plus de 7 ans il y a | 1

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

plus de 7 ans il y a | 0

Réponse apportée
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 ...

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
Function-Call generator does not accept Simulink Parameter
It's a parameter so spescify the sample time as mySimulinkParameter.

plus de 7 ans il y a | 0

Réponse apportée
How to search multiple block types using find_system
Turn on regexp find_system(bdroot,'regexp','on','BlockType','Inport|outport')

plus de 7 ans il y a | 3

| A accepté

Réponse apportée
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...

plus de 7 ans il y a | 0

Réponse apportée
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 ...

plus de 7 ans il y a | 1

Réponse apportée
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...

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
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().

plus de 7 ans il y a | 0

| A accepté

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

plus de 7 ans il y a | 0

Réponse apportée
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

plus de 7 ans il y a | 0

| A accepté

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

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 7 ans il y a | 1

| A accepté

Réponse apportée
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 ...

plus de 7 ans il y a | 1

| A accepté

Réponse apportée
Where can I find the Argument Inport Simulink function block in the library?
just grab a new Simulink Function block.

plus de 7 ans il y a | 0

Réponse apportée
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...

plus de 7 ans il y a | 0

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

plus de 7 ans il y a | 0

| A accepté

Charger plus