Réponse apportée
how can make for-loop in an if-end command for 'and(&) ' all arrays?
Better option than using for loop if(~isempty(find(matrix(:,1)<1))) a=2; end

plus de 14 ans il y a | 1

Réponse apportée
Minimum value of cell array
I don't think the declaration of cell you have given above is correct. Even though if content of your cell array d have the s...

plus de 14 ans il y a | 3

| A accepté

Réponse apportée
microcontrollers compatible with Matlab/Simulink
You can choose any micro-controller of your choice, because Simulink coder (or RTW) generated code is not platform specific. Co...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
matlab preloaded 'load' files
I don't think any such method exist. Once loaded by 'load', matlab extracts the variables from .mat file and saves in workspace...

plus de 14 ans il y a | 0

Réponse apportée
saving all of workspace in a specified folder
Saving to path save('path\myfile.mat'); Example: save('D:\WORKING\Myfile.mat'); Loading from a path load('path\myfile.mat...

plus de 14 ans il y a | 4

| A accepté

Réponse apportée
gui
In matlab, scope of a variable is limited to the function in which is declared. If u want to share the variable between multiple...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
sort a matrix depending on first row
[mat inx]=sort(b(1,:)); SortedMat=[b(:,inx(1)),b(:,inx(2)),b(:,inx(3)),b(:,inx(4))];

plus de 14 ans il y a | 0

Question


Command to 'Goto' a position in simulink window.
Is there any command line function to goto a position i.e. focus at a fosition in simulink window? My model is very big. I have...

plus de 14 ans il y a | 1 réponse | 1

1

réponse

Réponse apportée
Automate SFunction generation - Simulink workflow
You can trace the change in your library file containing subsystem by its 'ModifiedDate'. Write a script to find the modified...

plus de 14 ans il y a | 0

Réponse apportée
Returning largest and smallest values in the array
function [L, S, Lidx, Sidx] = largest_and_smallest(array) L=array(1); S=array(1); Lidx=1; Sidx=1;...

plus de 14 ans il y a | 0

Réponse apportée
How to match and two matrix elements and place it under one matrix...let me explain
Sz=size(B); C=zeros(Sz(1),10) for Br=1:Sz(1) for Bc=1:5 for Ac=1:10 if(B(Br,Bc)==A(Ac))...

plus de 14 ans il y a | 1

Question


Initial output value of Outport in top level subsystem of a model.
Consider an unconditional top level subsystem of a model. 'Initial output' field of Outports in top level is disabled in block ...

plus de 14 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
problem with TreatasEmpty using textscan command
strrep(stormspeed{1},'N/A','NaN')

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
reading text file in matlab
These are the steps 1. Read the text line by line 2. Remove '(' & ')' from each line 3. Arrange the lines in matrix expression f...

plus de 14 ans il y a | 0

Réponse apportée
Get simulation time in a Simulink model
Solution mentioned above (by Jiang) is one approach, also you can set the 'trigger-type' of trigger block to 'function call' ins...

plus de 14 ans il y a | 0

Réponse apportée
question regarding code generation.
As your model contains only stateflow chart, you can generate a simle C-code using 'stateflow coder(Use custom target). It gener...

plus de 14 ans il y a | 0

Question


How to suppress unwanted lines from ert generated code
The header file of my generated code contains unused include statements as #include <stdlib.h> #include <math.h> #in...

plus de 14 ans il y a | 1 réponse | 0

1

réponse

Question


ERT code generation customization
I want to customize the code generated by ERT target, but i dont know where to start. One of my customization requirement is -- ...

plus de 14 ans il y a | 1 réponse | 0

1

réponse