Beantwortet
loaded file is pathname
Increase the width of the "Value" column, you will see the full string. Or type "XMLFile" in Command Window.

mehr als 7 Jahre vor | 0

Beantwortet
For Loop Iterator Not working as expected.
You need to understand the difference between simulation steps and iteration steps. It looked like you ran simulation for 20 sec...

mehr als 7 Jahre vor | 0

Beantwortet
For Iterator Block Not present in Library , Any Idea ?
I looked and my library is the same as yours. The "For Iterator" block can't be used alone anyway so I don't think this is an is...

mehr als 7 Jahre vor | 0

| akzeptiert

Beantwortet
changing diagional values with different values
n=5; a=magic(n); b=a; index=sub2ind(size(a),1:n,1:n); b(index)=0; s=sum(b,2); b(index)=s;

mehr als 7 Jahre vor | 0

Beantwortet
Loading and saving huge matrices in Simulink
Can't use .mat file? Try Simulink Data Dictionary.

mehr als 7 Jahre vor | 0

Beantwortet
Sum variable size chunks in array
B=mat2cell(A,size(A,1),v); C=cellfun(@(x) sum(x(:)),B) or should be this B=mat2cell(A,size(A,1),v); C=cell2mat(cellfun(@(x) ...

mehr als 7 Jahre vor | 0

Beantwortet
Run simulink until trigger
Use the "Stop Simulation" block in Simulink->Sinks

mehr als 7 Jahre vor | 0

| akzeptiert

Beantwortet
replace with nans after condition
A(A<0.15*A_max)=nan

mehr als 7 Jahre vor | 0

Beantwortet
Coder - Create constant for specifying array size
Please refer to the document Code Generation for Variable-Size Arrays web(fullfile(docroot, 'simulink/ug/what-is-variable-size...

mehr als 7 Jahre vor | 0

Beantwortet
Why can't i create graph with two matrices in SIMULINK?
Not sure what is the block type for the bottom one, FromWorkspace? Anyway, you need to understand the difference between MATLAB...

mehr als 7 Jahre vor | 1

| akzeptiert

Beantwortet
How can i edit an object of the type SimulationOutput?
Just double click it in Workspace editor or run "open varname" for API web(fullfile(docroot, 'simulink/slref/simulink.simulat...

mehr als 7 Jahre vor | 0

Beantwortet
How to import column data from multiple Excel files with different number of rows?
Since each file contains different number of rows, you will need to use cell array for this. Change inside the loop to Time{K}=...

mehr als 7 Jahre vor | 2

| akzeptiert

Beantwortet
How can i test interface signals between subsystems?
If the signal goes directly from Subsystem1 to Subsystem2, then by definition their values are the same. Why would you still wan...

mehr als 7 Jahre vor | 0

Beantwortet
splitting matrix into separate elements
Drop a Constant block, specify the value as [1;2;3], connect it to a Demux block, specify the "Number of outputs" as 3. Connect ...

mehr als 7 Jahre vor | 1

Beantwortet
How can i find input and output signal names for a 'line' in MATLAB?
It will be easier if you construct a simple model and run this example. L = find_system(gcs,'FindAll','on','type','line'); k=1...

mehr als 7 Jahre vor | 0

| akzeptiert

Beantwortet
Size mismatch error when trying to find a row in an array that is the same as a variable vector.
The problem is here. If target is 1x2 and waypoints is nx2, you can't do waypoints==target waypoints = [100 150; 200 400; 17...

mehr als 7 Jahre vor | 0

Beantwortet
Replace a scaler with NaN
https://www.mathworks.com/matlabcentral/answers/57444-faq-why-is-0-3-0-2-0-1-not-equal-to-zero

mehr als 7 Jahre vor | 0

Beantwortet
Using assignin with array indexing
prepare the full assignment statement and use evalin().

mehr als 7 Jahre vor | 1

| akzeptiert

Beantwortet
Simulation of transfer function with variable denominator
You can implement this transfer function using an Integrator block, a Gain block (or a Product block) and a Sum block with a fee...

mehr als 7 Jahre vor | 0

Beantwortet
List of all subfolders and theire subfolders etc.
Yes. list=dir('**/*.*') will do it. Then check for list.isdir

mehr als 7 Jahre vor | 3

| akzeptiert

Beantwortet
How do I stop new simulink windows from stealing focus?
What Simulink window? If it is brought up by open_system(), you can use load_system() instead.

mehr als 7 Jahre vor | 0

| akzeptiert

Beantwortet
Why the first number is not displayed? [SIMULINK]
For matrix formats, each row of the matrix has a time stamp in the first column and a vector containing the corresponding data s...

mehr als 7 Jahre vor | 1

| akzeptiert

Beantwortet
A(B)=0 What is its meaning?
B is a logical index matrix. You can see the value is 1 (true) or 0 (false) wherever the corresponding value in A is greater tha...

mehr als 7 Jahre vor | 0

| akzeptiert

Beantwortet
Simulink: get range of values from lookup table
TableData=1:10; dStart=3; dEnd=6; index=and(TableData>=dStart, TableData<=dEnd); SelectedData=TableData(index) SelectedData...

mehr als 7 Jahre vor | 0

| akzeptiert

Beantwortet
I am not able to change compiler using Mex command to vc++
Follow this page and find the "supported compilers" for R2016a. https://www.mathworks.com/support/requirements/previous-release...

mehr als 7 Jahre vor | 0

Beantwortet
Only the value corresponding to the last loop of a for loop being saved in the output array
find() could find more than one match. See "help find"

mehr als 7 Jahre vor | 1

Beantwortet
Problems with saving large workspace
You might consider Tall Arrays web(fullfile(docroot, 'matlab/import_export/tall-arrays.html'))

mehr als 7 Jahre vor | 0

Beantwortet
Where is the address of simulink or matlab example offered by itself in my PC?
You mean file location? Run this command which sldemo_suspn_3dof

mehr als 7 Jahre vor | 0

Beantwortet
Smoothdata- undefined function 'smoothdata' for input arguments of type 'double'
Do you have other smoothdata() function or smoothdata as a variable in base workspace? Anyway, run "which -all smoothdata" to f...

mehr als 7 Jahre vor | 0

Mehr laden