Beantwortet
How can I prevent a new MATLAB session from being opened when using mlDiff from git-bash (git for Windows)?
Could you use "!" in the MATLAB command window? for example !git diff fileName Run External Commands, Scripts, and Programs ...

mehr als 6 Jahre vor | 0

Gelöst


Add two numbers
Calculate the sum of two numbers. Example input = [2 3] output = 5

mehr als 6 Jahre vor

Gelöst


Tell me the slope
Tell me the slope, given a vector with horizontal run first and vertical rise next. Example input: x = [10 2];

mehr als 6 Jahre vor

Gelöst


Whether the input is vector?
Given the input x, return 1 if x is vector or else 0.

mehr als 6 Jahre vor

Gelöst


How to subtract?
*&plusmn &plusmn &plusmn &plusmn &plusmn &plusmn &plusmn &plusmn &plusmn &plusmn &plusmn* * Imagine you need to subtract one...

mehr als 6 Jahre vor

Gelöst


Is this triangle right-angled?
Given three positive numbers a, b, c, where c is the largest number, return *true* if the triangle with sides a, b and c is righ...

mehr als 6 Jahre vor

Gelöst


Check if number exists in vector
Return 1 if number _a_ exists in vector _b_ otherwise return 0. a = 3; b = [1,2,4]; Returns 0. a = 3; b = [1,...

mehr als 6 Jahre vor

Gelöst


Weighted average
Given two lists of numbers, determine the weighted average. Example [1 2 3] and [10 15 20] should result in 33.333...

mehr als 6 Jahre vor

Beantwortet
How to load a two-dimensional array using 'From File ' block in Simulink
Please download model and .mat file attached. (created by R2019b) And execute following script. model = 'signal_5model'; % def...

mehr als 6 Jahre vor | 0

| akzeptiert

Beantwortet
How to display signal dimensions on signal lines?
Hello Starhowl, I attached the signal line display procedure as a .gif file. Regards, stozaki

mehr als 6 Jahre vor | 0

| akzeptiert

Beantwortet
Generate a HDL IP Core using MATLAB command line
Hello, Please refer following documentation. Run HDL Workflow with a Script Regards, stozaki

mehr als 6 Jahre vor | 0

Beantwortet
Change value for another value
Hello Sarah, Sample code with a reduced number of arrays. In your case, it's an array of 99999 values, not an array of 25 valu...

mehr als 6 Jahre vor | 1

Beantwortet
Where's the debug tab? Update: Solution found: Documentation didn't match Matlab-version!
Hello Starhowl, I have attached the steps to show the debug window. You need to place at least one Simulink block on the canvas...

mehr als 6 Jahre vor | 0

| akzeptiert

Gelöst


Most nonzero elements in row
Given the matrix a, return the index r of the row with the most nonzero elements. Assume there will always be exactly one row th...

mehr als 6 Jahre vor

Beantwortet
How to prevent addition from showing up in command window
If you get only 1000, you can try following script. N=10; err=1; while err>10^-3 N=N+1; total=0; for n=1:N y...

mehr als 6 Jahre vor | 0

| akzeptiert

Beantwortet
Using complex structure in simulink constant block
Hello, Please try attached model. execute bus object definition file. Simulate model. MathWorks dcoumentation : Simulink.B...

mehr als 6 Jahre vor | 1

| akzeptiert

Beantwortet
Fixed point tool conversion
Please try following script. model = 'modelName'; % define your model name sud = [model '/sud']; % define system under design ...

mehr als 6 Jahre vor | 1

Beantwortet
How to Configure simulink out-ports to generate specific argument of function?
Hello Amit, How do you use model referencing? You can add arguments by using a model reference and setting the storage class...

mehr als 6 Jahre vor | 0

| akzeptiert

Beantwortet
Downgrade to R2018a (from R2019b) to use logintimeout funtion didn't work.
Please refer following answer logintimeout using Database toolbox in R2019a

mehr als 6 Jahre vor | 0

| akzeptiert

Beantwortet
How to import an excel file that contains an absolute time column?
Hello Please define a return value of xlsread. for example.. [~,~,raw] = xlsread('ECUSIMTEST0000-000-01.csv') raw = 13×...

mehr als 6 Jahre vor | 0

Beantwortet
How to open .slx files created in R2019b using R2019a
Hello Richard, Do you use Simulink in your PC? Please try following command and refer the MathWorks document. Simulink.export...

mehr als 6 Jahre vor | 0

Beantwortet
Illegal Fixed-Point Data Type: the number of bits exceeded the supported maximum?
Hello TarikTech, The maximum 'word length' supported by Fixed-Point Designer is 128. It looks like the word length has exceeded...

mehr als 6 Jahre vor | 1

| akzeptiert

Beantwortet
Simulink ブロックの前景色のデフォルトカラーを変えるには
ご質問ありがとうございます。 問題は解決されましたでしょうか? 調べてみたのですが、Simulinkの既定の設定を変更するには set_param(0,'プロパティ名','設定値') を使用します。しかし、設定可能なプロパティにブロックの背景色...

mehr als 6 Jahre vor | 0

| akzeptiert

Beantwortet
Errors in 'MATLAB Function' Block in a Simulink model for a Polynomial Trajectory (Matlab 2019a)
I think that 'sum_vector' is variable size output. So, it should define as 'coder.varsize('sum_vector',[min max])'. I have conf...

mehr als 6 Jahre vor | 0

Beantwortet
"At least one 'end' is missing: the statement may begin here"
Please try following script. k=1 for k=1:20 disp(k) if mod(k,2)==0 disp("na") elseif mod(k,3)==0 di...

mehr als 6 Jahre vor | 0

Gelöst


Find all elements less than 0 or greater than 10 and replace them with NaN
Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

mehr als 6 Jahre vor

Beantwortet
how to access the variable value declared in constant block using get_param command.
Hello Ravi, Did you solve this problem? Please try following script. a = 1; % define the value of 'a' blkValue = get_param(gc...

mehr als 6 Jahre vor | 1

| akzeptiert

Gelöst


Check if sorted
Check if sorted. Example: Input x = [1 2 0] Output y is 0

mehr als 6 Jahre vor

Beantwortet
find-system command
Hello zineb, Your command has two mistakes. 1. find-system : find_system 2. 'Type' : 'BlockType' Please try following script...

mehr als 6 Jahre vor | 0

Gelöst


Return the first and last character of a string
Return the first and last character of a string, concatenated together. If there is only one character in the string, the functi...

mehr als 6 Jahre vor

Mehr laden