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

bijna 4 jaar ago | 0

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

bijna 4 jaar 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 ...

bijna 4 jaar 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...

bijna 4 jaar 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...

bijna 4 jaar ago | 0

| accepted

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');

bijna 4 jaar ago | 0

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

bijna 4 jaar 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. ...

bijna 4 jaar ago | 0

| accepted

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

bijna 4 jaar ago | 0

| 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 ...

bijna 4 jaar 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 ...

bijna 4 jaar 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 ...

bijna 4 jaar 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/...

bijna 4 jaar 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 ~...

bijna 4 jaar 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...

bijna 4 jaar 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...

bijna 4 jaar 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},':',''...

bijna 4 jaar 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...

bijna 4 jaar 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...

bijna 4 jaar 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...

bijna 4 jaar ago | 1

| 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...

bijna 4 jaar 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...

bijna 4 jaar 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...

bijna 4 jaar ago | 2

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...

bijna 4 jaar 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 = ...

bijna 4 jaar 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...

bijna 4 jaar 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...

bijna 4 jaar ago | 1

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 ...

bijna 4 jaar 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 ...

bijna 4 jaar 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...

bijna 4 jaar ago | 0

Load more