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

11 meses hace | 0

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

11 meses hace | 0

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

11 meses hace | 0

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

11 meses hace | 1

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

11 meses hace | 1

Respondida
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); ...

11 meses hace | 0

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

11 meses hace | 1

| aceptada

Respondida
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/...

11 meses hace | 0

| aceptada

Respondida
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 meses hace | 0

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

12 meses hace | 0

Respondida
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 meses hace | 0

Respondida
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 meses hace | 0

Respondida
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 meses hace | 0

Respondida
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 meses hace | 0

Respondida
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 meses hace | 0

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

12 meses hace | 0

| aceptada

Respondida
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 meses hace | 0

Respondida
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 meses hace | 0

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

12 meses hace | 0

| aceptada

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

12 meses hace | 0

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

12 meses hace | 0

| aceptada

Respondida
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 meses hace | 0

| aceptada

Respondida
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 meses hace | 1

| aceptada

Respondida
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 meses hace | 0

| aceptada

Respondida
Matlab command to use
doc clear doc clc

12 meses hace | 0

Respondida
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 meses hace | 0

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

12 meses hace | 0

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

12 meses hace | 0

| aceptada

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

12 meses hace | 0

Cargar más