Beantwortet
Speichern eines Arrays in einer .mat Datei
Leider habe ich keinen Embedder/Simulink/MATLAB Coder. Aber versuch mal einen Schalter zu bauen, wobei das Array wird gespeicher...

12 Monate vor | 0

Beantwortet
Optimizing a matrix of values
a = zeros(3); [m, n] = size(a); a(~diag(1 : m)) = 1 : m * n - m; a.'

12 Monate vor | 0

Beantwortet
Invalid Simulink object name: 'task_05/Circuit/R_load'.
It is possible that R_load has invisible character at the end. Click on R_load Subsystem and then type *gcb* in MATLAB command w...

12 Monate vor | 0

Beantwortet
How we can do the matrix and vector in vector form?
B = B.'; Wanted = [A; B(:)]

12 Monate vor | 1

Beantwortet
How we can do the matrix and vector in vector form?
[A, B.'] %?

12 Monate vor | 1

Beantwortet
How to write a specific bus signal label to a string variable
function y = findMaxSignal(u) % Assuming 'u' is the input vector representing the signals [~, maxIndex] = max(u); ...

12 Monate vor | 0

Beantwortet
Hi. How do I maintain the square wave output of the 1-D?
Not sure which block you are using beefore to Goto "[delay]" block but removing data conversion and this phase shift block. The ...

12 Monate vor | 1

| akzeptiert

Beantwortet
Hi. In Simulink modeling, what can we do to ensure that the switching waveforms of the duty cycle and 1-duty cycle are not in phase?
If you want both to be in 90 deg out of phase with each other , you can simply use the <https://www.mathworks.com/help/simulink/...

12 Monate vor | 0

| akzeptiert

Beantwortet
what is Selector block in Simulink and how to use it? and what are its type
It’s purpose is to index a vector. For example: let’s say you have an array x = [1, 2, 3] When the index mode is zero ...

12 Monate vor | 0

Beantwortet
Issue while loading user defined blocks
You probably don’t have Stateflow or the valid license for it.

12 Monate vor | 0

Beantwortet
Variable define for default storage class
just open one of the models and open Code Mappings - Component Interface and enter your desired name in the Identifier field an...

12 Monate vor | 0

Beantwortet
Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.
plot(x,Env(:,1),'b',x,Env(:,2),'r') Note: just responding to the error message, assuming rest of the code works fine.

12 Monate vor | 0

Beantwortet
Define default signal values after code generation
Yes, you can do this by defining your signal as <https://www.mathworks.com/help/simulink/slref/simulink.signal.html *Simulink.Si...

12 Monate vor | 0

Beantwortet
Custom Simulink toolstrip color
<https://de.mathworks.com/help/simulink/ug/create-custom-simulink-toolstrip-tabs.html> if you find something related to the link...

12 Monate vor | 0

Beantwortet
How to Add Title to Legend ?
<https://de.mathworks.com/matlabcentral/answers/324848-setting-a-title-for-a-legend> perhaps one of those answers in the link if...

12 Monate vor | 0

Beantwortet
What's the best way to write this code?
"OR" to be replaced with ||

12 Monate vor | 0

| akzeptiert

Beantwortet
Extracting data from SimulationOutput from multiple simulations
No_iter= 8; PCC_V_All = cell(1, No_iter); for k_index = 1 : No_iter PCC_V{k_index} = TP_rms(get(out(1, k_index).l...

12 Monate vor | 0

Beantwortet
I am using PV ARRAY block in simulink, from where i can find the exact formulae implemented behind "PV ARRAY" block.
<https://www.mathworks.com/help/sps/powersys/ref/pvarray.html> mentioned in the documentation

12 Monate vor | 0

Beantwortet
複数の条件(文字)に一致するインデクスの取得方法
Row_number = find(strcmp(Data{:, 1}, 'Eat') & strcmp(Data{:, 2}, 'Rumination')) % Where Data is your Table

12 Monate vor | 0

| akzeptiert

Beantwortet
sgtitleの位置調整について
Exactly use the code in this <https://de.mathworks.com/help/matlab/ref/sgtitle.html#mw_719e1aad-fda8-4073-8369-5947229a8f17 *sgt...

12 Monate vor | 0

Beantwortet
Create buffer/array in simulink.
To store data as array use <https://de.mathworks.com/help/simulink/slref/foriteratorsubsystem.html *For-Iterator Subsytem*>.

12 Monate vor | 0

| akzeptiert

Beantwortet
Change 'Gain parameter' value of Gain block in Model
Sure, just use a <https://de.mathworks.com/help/simulink/gui/mask-editor-overview.html#bu085yl *Mask*> to change the *Gain* Valu...

12 Monate vor | 0

| akzeptiert

Beantwortet
simulink 寻找ramp-up/down模块
It is a <https://de.mathworks.com/help/simulink/ref_obsolete_blocks/signalbuilder.html *Signal Builder*> Block in which you can ...

12 Monate vor | 1

| akzeptiert

Beantwortet
How do I upload a .mat file to GitHub using MATLAB and access it remotely? Can you provide some references to GitHub API documentation?
<https://de.mathworks.com/help/matlab/matlab_prog/use-git-in-matlab.html>

12 Monate vor | 0

| akzeptiert

Beantwortet
Matlab command to use
doc clear doc clc

12 Monate vor | 0

Beantwortet
I have a question about "Error in port widths or dimensions. 'Output Port 1' of 'From32' is a one demensional vector with 3 elements"
<https://www.mathworks.com/help/sps/powersys/ref/abctodq0dq0toabc.html *Park Transformation*> block only accepts a positive scal...

12 Monate vor | 0

Beantwortet
Li-ion battery simulation by simulink
Have a go through <https://www.mathworks.com/products/simscape-battery.html *Simscape Battery*>

12 Monate vor | 0

Beantwortet
duplicating strings in a cell array
[~, b, c] = unique(name); idx = b(sum(b(c) == unique(b(c)).') > 1)

12 Monate vor | 0

| akzeptiert

Beantwortet
Matlab Function Block in Simulink Model_ using persistent variables to hold previous values
change prev_DcBusVolt to pre_Volt

12 Monate vor | 0

Mehr laden