Murugan C
Followers: 0 Following: 0
I am a good experience at MATLAB - Script.
Feeds
已解决
subtract central cross
Given an n-by-n square matrix, where n is an odd number, return the matrix without the central row and the central column.
9 months 前
已解决
Given a matrix, swap the 2nd & 3rd columns
If a = [1 2 3 4; 1 2 3 4; 1 2 3 4; 1 2 3 4]; then the result is ans = 1 3 2 4 1 3 2...
9 months 前
已解决
Matlab Basics - Rounding II
Write a script to round a variable x to 3 decimal places: e.g. x = 2.3456 --> y = 2.346
9 months 前
已解决
Check that number is whole number
Check that number is whole number Say x=15, then answer is 1. x=15.2 , then answer is 0. http://en.wikipedia.org/wiki/Whole_numb...
9 months 前
已解决
MATLAB Basic: rounding IV
Do rounding towards plus infinity. Example: -8.8, answer -8 +8.1 answer 9 +8.50 answer 9
1 year 前
已解决
MATLAB Basic: rounding III
Do rounding towards minus infinity. Example: -8.8, answer -9 +8.1 answer 8 +8.50 answer 8
1 year 前
已解决
MATLAB Basic: rounding II
Do rounding nearest integer. Example: -8.8, answer -9 +8.1 answer 8 +8.50 answer 9
1 year 前
提问
backslash(\) is through error in 2013a but not to 2018b
the below syntax is working in matlab 2018b s = [1 2 3 4; 5 6 7 9; 1 1 1 1 ; 1 1 1 1]; b=[1;1;1;1]; d = s.\b %%result d = ...
1 year 前 | 1 个回答 | 0
1
个回答已解决
MATLAB Basic: rounding
Do rounding near to zero Example: -8.8, answer -8 +8.1 answer 8
2 years 前
已回答
problem with if and or
Hi, to compare string, use strcmpi keyword. Please find below code. Choix1 = questdlg('Veuillez choisir un mode de fonctionn...
problem with if and or
Hi, to compare string, use strcmpi keyword. Please find below code. Choix1 = questdlg('Veuillez choisir un mode de fonctionn...
2 years 前 | 0
已回答
split the matrix into two
odd_Mat = A(:,1:3:end); % Odd column matrix extraction even_mat = A(:,2:2:end); % Even column matrix extraction
split the matrix into two
odd_Mat = A(:,1:3:end); % Odd column matrix extraction even_mat = A(:,2:2:end); % Even column matrix extraction
2 years 前 | 0
提问
Extract info using regular expression matching
Hello together, I was trying to do some regurlare expression, I am getting correct output which i was expecting. can you plea...
2 years 前 | 1 个回答 | 0
1
个回答已回答
how to transfer data from Proteus to Matlab? (Serial Communication)
try this one port = 'COM1'; s1 = serial(port); set(s1,'BaudRate',9600,'StopBits',1,'FlowControl','none','Parity','none','Da...
how to transfer data from Proteus to Matlab? (Serial Communication)
try this one port = 'COM1'; s1 = serial(port); set(s1,'BaudRate',9600,'StopBits',1,'FlowControl','none','Parity','none','Da...
3 years 前 | 0
已回答
Write a Matlab code to check. .. whether a given number is an amstrong number using functions.
function check_amstrong_number(input) if isnumeric(input) input_ams = num2str(input); else error('Input shoud be n...
Write a Matlab code to check. .. whether a given number is an amstrong number using functions.
function check_amstrong_number(input) if isnumeric(input) input_ams = num2str(input); else error('Input shoud be n...
3 years 前 | 0
已回答
How to remove leap year dates from time series in data
[numDat,txtDat,rawDat] = xlsread('moving_windown_test.xlsx'); leafYecount = 1; for i1 = 1 : size(rawDat,1) str_data = num...
How to remove leap year dates from time series in data
[numDat,txtDat,rawDat] = xlsread('moving_windown_test.xlsx'); leafYecount = 1; for i1 = 1 : size(rawDat,1) str_data = num...
3 years 前 | 0
| 已接受
提问
How to change icon in questdlg
I want to change MATLAB Icon in question dialog box. is it possible to do? If yes, please tell me how to do it.
3 years 前 | 0 个回答 | 0
0
个回答提问
selection call back function executed multiple times for single click
Dear all, If you execute the 'example_table_header_Filer.m' file. you can see on file with table info. Once you click on ...
3 years 前 | 0 个回答 | 0
0
个回答已回答
how to copy cell array data into single cell of table
try like this a = {{[28.3469 284.0484 57.8201 64.7270]} {[16.5200 120.0733 57.8201 46.3408]}}'; d = cell2table(a);
how to copy cell array data into single cell of table
try like this a = {{[28.3469 284.0484 57.8201 64.7270]} {[16.5200 120.0733 57.8201 46.3408]}}'; d = cell2table(a);
3 years 前 | 0
| 已接受
已回答
Replacing the values in a column of a matrix
A=[ 8 8 8 8 17 17 28 26 7 7 7 ]' ; B = [25 21 28 26 16]'; j = 1; z = 1; check1 = 0; result1 = []; for i = 1 : length(A...
Replacing the values in a column of a matrix
A=[ 8 8 8 8 17 17 28 26 7 7 7 ]' ; B = [25 21 28 26 16]'; j = 1; z = 1; check1 = 0; result1 = []; for i = 1 : length(A...
3 years 前 | 0
| 已接受
已回答
How do I insert a variable value in legend of a plot?
use below code value_x = 2.2; value_y = 2.5; legend(sprintf('Value-X = %g',value_x),sprintf('Value-Y = %g',value_y))
How do I insert a variable value in legend of a plot?
use below code value_x = 2.2; value_y = 2.5; legend(sprintf('Value-X = %g',value_x),sprintf('Value-Y = %g',value_y))
3 years 前 | 0
| 已接受
提问
Numeric extract from char
Hello all, I need to extract numbers from char. For exp ("Acb2hea" == 10) ("Acb2hea1" >= 15) ("Acb2hea" ...
4 years 前 | 1 个回答 | 0
1
个回答提问
extract structure array value
Hi all I have nested structure like below, MyData(1).User.Id = 5; MyData(1).User.Name = 'XXX'; MyData(2).User.Id = 7; ...
4 years 前 | 3 个回答 | 0
3
个回答提问
cell conversion to mat
Hi, I have cell arrray and i want to convert cell to mat. a = {[111,116];[389,396];146;173;[156,161];166;180;175;167;176;168...
4 years 前 | 1 个回答 | 0
1
个回答提问
string split in cell array
Hi Guys! I am trying to split a numberic sting in cell array data. but unable to do it. a = {'c\datat\pic\res\000-774'; '\c\...
4 years 前 | 1 个回答 | 0
1
个回答已回答
Assign values to numbers and recount after a fixed interval
consider excel as my input. [numdata, textdata, rawdata] = xlsread('Test_data.xlsx'); timecolomn = (datestr( numdata(:,1), ...
Assign values to numbers and recount after a fixed interval
consider excel as my input. [numdata, textdata, rawdata] = xlsread('Test_data.xlsx'); timecolomn = (datestr( numdata(:,1), ...
5 years 前 | 0
已回答
How can I copy files from multiple subfolders into a new folder and rename them while doing so?
hi, if your all folder's are same structure. pl use this code. common_folder1 = 'Erg'; common_folder2 = 'DV'; outputFolde...
How can I copy files from multiple subfolders into a new folder and rename them while doing so?
hi, if your all folder's are same structure. pl use this code. common_folder1 = 'Erg'; common_folder2 = 'DV'; outputFolde...
5 years 前 | 1
| 已接受
已解决
Make a random, non-repeating vector.
This is a basic MATLAB operation. It is for instructional purposes. --- If you want to get a random permutation of integer...
5 years 前
已解决
Magic is simple (for beginners)
Determine for a magic square of order n, the magic sum m. For example m=15 for a magic square of order 3.
5 years 前
已解决
Number of 1s in a binary string
Find the number of 1s in the given binary string. Example. If the input string is '1100101', the output is 4. If the input stri...
5 years 前