Solved

Split a string into chunks of specified length

Given a string and a vector of integers, break the string into chunks whose lengths are given by the elements of the vector. Ex...

2 years ago

Solved

Create a cell array out of a struct

Create a cell array out of a (single) struct with the fieldname in the first column and the value in the second column: in: ...

2 years ago

Solved

Cell joiner

You are given a cell array of strings and a string delimiter. You need to produce one string which is composed of each string fr...

2 years ago

Solved

Convert a Cell Array into an Array

Given a square cell array: x = {'01', '56'; '234', '789'}; return a single character array: y = '0123456789'

2 years ago

Solved

MATLAB Basic: rounding IV

Do rounding towards plus infinity. Example: -8.8, answer -8 +8.1 answer 9 +8.50 answer 9

2 years ago

Answered

Convert the Contents of matrix array (double) to single number (double) ?

Converted_Vect_Time_report = str2double(sprintf('%d',Vect_Time_style)) ;

Convert the Contents of matrix array (double) to single number (double) ?

Converted_Vect_Time_report = str2double(sprintf('%d',Vect_Time_style)) ;

2 years ago | 1

| accepted

Answered

how we write condition in for loop?

Increment of 1 for k = 1:1:j % Increment of 1 % do operations end Increment of 2 for k = 1:2:j % Incr...

how we write condition in for loop?

Increment of 1 for k = 1:1:j % Increment of 1 % do operations end Increment of 2 for k = 1:2:j % Incr...

2 years ago | 0

Answered

Rename an inport and outport of Subsystem

Use below code to Get what ever Output you wanted. If any further clarification needed ping me. % Rename an inport and outport ...

Rename an inport and outport of Subsystem

Use below code to Get what ever Output you wanted. If any further clarification needed ping me. % Rename an inport and outport ...

2 years ago | 0

Answered

How to delete entire row if any cell of the particular row is empty

Input : Matrix = [[{'a'};{'b'};{'c'};{''};{'b'};{'c'}],[{'a'};{'b'};{''};{'a'};{''};{'c'}],[{'a'};{''};{'c'};{'a'};{'b'};{...

How to delete entire row if any cell of the particular row is empty

Input : Matrix = [[{'a'};{'b'};{'c'};{''};{'b'};{'c'}],[{'a'};{'b'};{''};{'a'};{''};{'c'}],[{'a'};{''};{'c'};{'a'};{'b'};{...

2 years ago | 0

Submitted

Simulink Alignment Tool - Auto Layout Subsystems - Function

Arranging the following blocktype (inports, outports ,from-goto blocks , terminator) connected to Subsystem.

2 years ago | 8 downloads |

Answered

anyway to compare date in Matlab

[~,Data] = dos('dir D:/test/abc.m'); Scanned_data = textscan(Data,'%s'); Date_modified = Scanned_data{1}{15};

anyway to compare date in Matlab

[~,Data] = dos('dir D:/test/abc.m'); Scanned_data = textscan(Data,'%s'); Date_modified = Scanned_data{1}{15};

2 years ago | 0

Answered

How to check the current line (debug)

For finding current line handle https://in.mathworks.com/matlabcentral/fileexchange/70643-gclh-get-handle-of-current-line

How to check the current line (debug)

For finding current line handle https://in.mathworks.com/matlabcentral/fileexchange/70643-gclh-get-handle-of-current-line

2 years ago | 0

Answered

How does one identify the current line being evaluated during execution?

For finding current line handle https://in.mathworks.com/matlabcentral/fileexchange/70643-gclh-get-handle-of-current-line

How does one identify the current line being evaluated during execution?

For finding current line handle https://in.mathworks.com/matlabcentral/fileexchange/70643-gclh-get-handle-of-current-line

2 years ago | 0

Submitted

gclh - get handle of current line

gcbl returns the handle/handles of the current line in the current system.

2 years ago | 3 downloads |

Answered

What is the order of reference models in Simulink?

Please use the below script to generate Execution Order... https://in.mathworks.com/matlabcentral/fileexchange/70642-generating...

What is the order of reference models in Simulink?

Please use the below script to generate Execution Order... https://in.mathworks.com/matlabcentral/fileexchange/70642-generating...

2 years ago | 0

| accepted

Submitted

Generating Sorted Execution Order (Order of Execution)

This File Generates Sorted Execution Order to find what executes in the order

2 years ago | 2 downloads |

Answered

How to access data from structure

Please try this Command to get the 4th column A.B.C(:,4) % To get 4th column

How to access data from structure

Please try this Command to get the 4th column A.B.C(:,4) % To get 4th column

2 years ago | 1

| accepted

Answered

convert a char array into a single char

Please specify with an example. You can use Empty_chars = char(' '*char(ones(360,4))) Reshaped = reshape(Empty_chars,36,40)...

convert a char array into a single char

Please specify with an example. You can use Empty_chars = char(' '*char(ones(360,4))) Reshaped = reshape(Empty_chars,36,40)...

2 years ago | 0

Answered

Comparing two tables and copy elements of table 2 into table 1

Use strcmp if the values are matching then add the values to the T and W column

Comparing two tables and copy elements of table 2 into table 1

Use strcmp if the values are matching then add the values to the T and W column

2 years ago | 0

Answered

Generating a list of Simulink model's IOs

% Finding the Inputs Inports_path = find_system('DummyModel','BlockType','Inport'); Inputs = get_param(Inports_path,'Name'); ...

Generating a list of Simulink model's IOs

% Finding the Inputs Inports_path = find_system('DummyModel','BlockType','Inport'); Inputs = get_param(Inports_path,'Name'); ...

2 years ago | 0

| accepted

Submitted

Write Cell array in double data into Cell array

Converting excel_write (Cell array containing matrix of double data.) to Cell array which can be used to write in excel file.

2 years ago | 1 download |

Answered

Write data to text file not containing punctuation marks?

Use regexprep or delete the found character using regexp found =[]. Please find attched the code below for Removing all the pun...

Write data to text file not containing punctuation marks?

Use regexprep or delete the found character using regexp found =[]. Please find attched the code below for Removing all the pun...

2 years ago | 1

| accepted

Question

Delete all unconnected Lines from simulink diagram ?

Answer: delete_line(find_system(Execution_level, 'FindAll', 'on', 'Type', 'line', 'Connected', 'off'))

2 years ago | 0 answers | 2