Answered
xlswrite doesn't work when passing on Matlab 2013
Try removing all ' *[~,~]*' from *xlswrite()* coammnd.. and run the code..

8 years ago | 0

Answered
How to sum strings digits?
a = '9437256976162618652738646244869425874869'; b = '776357087634731721006'; c = num2str(str2num(a) + str2num(b)) ...

8 years ago | 0

Answered
How can I export a m file to excel ?
Try for this.. as you mentioned you have 231x338x3 matrix, it means it is having 3 sets of 231x338 let us consider, it is ...

8 years ago | 0

Answered
Append new columns into Excel with MATLAB
Kelvin, In order to append new column with existing data of excel, you need to know the no. of rows. Because if you have var...

8 years ago | 0

Answered
.fig won't open
for your a.fig, do you have a.m file available with you? if yes, then you can run that .m file and or call that .m file wher...

8 years ago | 0

Answered
Exporting Output text to Excel
xlswrite('ABC.xlsx',{'Your batting average is 0.357'},'Sheet1','A1'); and to open that xlsx file.. winopen('ABC.xlsx');

8 years ago | 0

Answered
Is there code to recognize and allow me to browse and select CSV data?
[filename, pathname] = uigetfile({'*.xls';'*.xlsx';'*.csv'});

8 years ago | 0

Answered
Trouble reading in formatted text file
Consider you have text file with name 'Data.txt'.. then Following command will give you all data present in text file. ...

8 years ago | 0

| accepted

Answered
current date and time
datestr(now, 'dd/mm/yy-HH:MM')

8 years ago | 2

| accepted

Answered
How to check which function is the slowest one?
Simply put.. 'tic' and 'toc' commands in each function one by one and check the time.. % starting of function tic ...

8 years ago | 0

Answered
find common elements of the same row
This is another Answer from my side.. If you have array of 40x1000, and all row and column contains 0's and 1's.. and you ...

8 years ago | 0

Answered
find common elements of the same row
You can do this.. let us consider, you have following input matrix.. A = [1 2 3 4 5 6 7 8 9; 1 2 3 4 3 2 2 5 7; 9 8 7 6 5 ...

8 years ago | 0

| accepted

Answered
transform data from rows to columns
If you have variable 'data' like.. data = {'company-----Date--------Price', 'ComA--------15/05/2015--20.5', 'ComA--------15/...

8 years ago | 0

| accepted

Answered
Extracting data from a .txt file
clc; clear all; Data = textread('Data.txt', '%s', 'delimiter', ''); count = 1; for i = 1: length(Data) if ~...

8 years ago | 0

Answered
How can I convert data in format cell to double?
As the 'X' is in dataset format, so you need to create new variable by fetching data for 'X'. first load your .mat file, then...

8 years ago | 0

Answered
How to read alternate rows from an excel sheet?
Hello Aravind, As per my knowledge, in xlsread, there is no such facility to fetch alternate rows of column. You can do on...

8 years ago | 0

Answered
How to read date and time from text file and move into cell array?
% code for Date Date = Cstr{3}; splitDate = strtrim(regexp(Cstr{3},' ','split')); newDate{1} = strrep(splitDate{1},':',''...

8 years ago | 1

| accepted

Answered
how to ignore a value and jumps to next row for calculation?
Let us consider, you have values as follows as example: u = [112, 54, 86, 547, 999, 458, 657, 999, 56, 422, 100]; fo...

8 years ago | 0

Answered
How can i generate month and year strings for Datetime vectors?
Hello Steven, here is the code.. dateArray = ['01/Jan/2015';'01/Feb/2015']; for i=1:size(dateArray,1) date = dat...

8 years ago | 0

Answered
how to rearrage a cell array?
Here is the code: Once you calculate the variables 'parameter' and 'value' Below that add this code.. % value of vari...

8 years ago | 2

| accepted

Answered
Creating new variable in a subfunction .m file
file 1 function main() % your code for loop for calling the sub () for N number of time % your code which calcul...

8 years ago | 0

| accepted

Answered
how to do staircse PWM in matlab
Hello Gray, I am not sure what exactly you want but I guess following control logic is similar to what you want.. It is the c...

8 years ago | 0

Answered
How to run a p code matlab?
.p files are the end user code, which we can't see like any other .m files. to run the .p files, simply keep it in your curre...

8 years ago | 6

Answered
Xlsread for a particular column returns values from another column too?
MyData1 = xlsread(fileName,'Sheet1','AD:AD'); ir = find(ismember(MyData1,2.5)); MyData2 = xlsread(fileName,'Sheet1...

8 years ago | 0

Answered
I'm having trouble running my script
Hello Jeremy, try for this code... clear all; clc; num = input('\nEnter total number of students = '); for i = ...

8 years ago | 0

Answered
Reading a text file and rows with data
For reading any text file.. try this code.. clear all; count = 1; fid = fopen('ascii_file.txt'); tline = fgetl...

8 years ago | 0

Answered
how to open another gui from existing gui using push button ?
Lets consider you have 'ABC' is main GUI and 'XYZ' is sub GUI and 'OK' is the push button of GUI ABC then in callback of OK p...

8 years ago | 2

Answered
How to sort or rearrange a column with respect to the other column?!
Hello Mariam, For your given sample data: A = 241 5 1245 4 684 ...

8 years ago | 0

Answered
How to extract user defined data from excel sheet?
Hello Ali, Please find attached code and input data sheet. Keep it in matlab current directory and run the sheet.m file ...

8 years ago | 0

| accepted

Answered
Show multiple graph in one grid from multiple .m files
check for command: "subplot" copy the following line completely and paste into command window and check the results subpl...

8 years ago | 0

Load more