Risposto
How to check for common elements among multiple arrays ? Number of arrays are more than 100 and sizes vary for each array
Use a loop Com=intersect(out{1,1},out{1,2}); for k=3:size(out,2) Com=intersect(Com,out(1,k)); if isempty(Com) break; end ...

oltre 6 anni fa | 1

| accettato

Risposto
Compiled application does not write to diary log file
I think you are right. The cause is that there is no Command Window in your compiled app. I would suggest writing to a specific...

oltre 6 anni fa | 1

| accettato

Risposto
How to change the initial condition of a block in the model with Simulink.Parameter?
The initial condition can be regarded as a state. Use the "State Writer" block. Follow examples. https://www.mathworks.com/help...

oltre 6 anni fa | 0

Risposto
Error using str = input(prompt,'s')
YesNo = input(prompt2,'s')

oltre 6 anni fa | 1

| accettato

Risposto
How can I create logsout in base workspace after running sim(), without disabling fast restart?
When using sim(), the result need to be returned logsout=sim('TestLogsout2','ReturnWorkspaceOutputs', 'on')

oltre 6 anni fa | 1

Risposto
How to set 'PreserveVariableNames' to True while importing an Excel file into matlab?
help readtable 'PreserveVariableNames' Flag to preserve variable names, specified as true or fals...

oltre 6 anni fa | 2

| accettato

Domanda


MATLAB Central Answers website problem?
Did anyone have any problem? When I click "My Answers", it shows both my questions and answers with questions listed first. Sa...

oltre 6 anni fa | 7 risposte | 0

7

risposte

Risposto
fill up a cell array with string elements
This is all you need words=split('this is a sentence.')

oltre 6 anni fa | 0

Risposto
MATLAB Help Report shows No Examples and No See Also Line
use %, not %% and provide real contents for examples and "See also".

oltre 6 anni fa | 0

Risposto
sl_customization - Update Lookup Table Data (Non-Standard Format)
As far as propagating modified data back to its source variable, it doesn't matter whether the source variable is in the base wo...

oltre 6 anni fa | 0

Risposto
how to import C code files or precompiled libraries into Simulink
Use "C Caller" block https://www.mathworks.com/help/releases/R2019b/simulink/slref/ccaller.html

oltre 6 anni fa | 0

Risposto
Error when using breakpoints in Simulink
Can you run "mex -setup" and follow instructions to select your local MinGW as the C compiler.

oltre 6 anni fa | 0

Risposto
How do I count the number of times zero is being crossed by a signal?
If you have the DSP toolbox, there is a Zero-Crossing counter block. If not, you can compare the signal with zero, which creates...

oltre 6 anni fa | 0

| accettato

Risposto
Updating Simulink Block Parameters using Matlab Scripts
set_param(YourModel, 'SimulationCommand', 'pause'); set_param(YourBlock, parameter, value); set_param(YourModel, 'SimulationCo...

oltre 6 anni fa | 0

Risposto
Matlab: what happends under the hood when choosing 2 seeds far away with rng
My understanding of rng(SeedNumber) is that SeedNumber is like an ID (identification number). It gives you the ablity to re-gene...

oltre 6 anni fa | 0

Risposto
Setting different properties for some line objects stored in the same handle
set(h1([3,5]),'LineWidth',2)

oltre 6 anni fa | 0

| accettato

Risposto
How to load data from Simulnik Thermal House example?
Specify the callback as "kuca_podaci". Don't include the ".m" extension.

oltre 6 anni fa | 1

| accettato

Risposto
Changing parameters with time
Use the Step block. It can specify the initial value, final value and value-changing time.

oltre 6 anni fa | 0

| accettato

Risposto
()-indexing must appear last in an index expression.
A=rand(3,4); size(A,2) size(A)(2) Error: Indexing with parentheses '()' must appear as the last operation of a valid indexin...

oltre 6 anni fa | 0

Risposto
Fail to convert string to a number
use double() to see the ASCII value a=[char(32),'3.93',char(10)]; double(a)

oltre 6 anni fa | 0

| accettato

Risposto
I cannot view my scope output window fully
If you are using Windows, find the Task Bar, find the icon for MATLAB and then the window icon for the Scope, right click, choos...

oltre 6 anni fa | 0

Risposto
Multi line edit box, adding text to the top rather than the bottom
try currString=[{msg};currString];

oltre 6 anni fa | 0

| accettato

Risposto
Pulsewidth detection SIMULINK with a rounding issue
Your pulse cycle is 100us. Your clock cycle is 10us. So you can count 10 times during a pulse cycle. It is like counting by 10 s...

oltre 6 anni fa | 0

| accettato

Risposto
Get Path of Saved File
use uiputfile() which can return path and file name. then save()

oltre 6 anni fa | 0

| accettato

Risposto
command history with updates
The command history is saved as history.xml for different versions. See if you can simply copy over the file. C:\Users\XYZ\AppD...

oltre 6 anni fa | 1

Risposto
How do I get rid of the windows command prompt when I open an .exe file from a compiled application using Matlab's system function?
try this? winopen('On-ScreenKeyboardPortable.exe')

oltre 6 anni fa | 0

| accettato

Risposto
Call Matlab function in simulink
Use the MATLAB function block MATLAB function

oltre 6 anni fa | 0

Risposto
How to combine array columns to form complex number?
Since you used table, you need to run S21complex = complex(S21real.Var2, S21imag.Var2)

oltre 6 anni fa | 1

| accettato

Risposto
How to update values ​​in Simulink
All you need is to declare "a" as a persistent variable. doc persistent

oltre 6 anni fa | 0

Carica altro