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

대략 8년 전 | 0

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

대략 8년 전 | 0

답변 있음
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년 전 | 0

답변 있음
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년 전 | 0

답변 있음
.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년 전 | 0

답변 있음
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년 전 | 0

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

대략 8년 전 | 0

답변 있음
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년 전 | 0

| 수락됨

답변 있음
current date and time
datestr(now, 'dd/mm/yy-HH:MM')

대략 8년 전 | 2

| 수락됨

답변 있음
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년 전 | 0

답변 있음
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년 전 | 0

답변 있음
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년 전 | 0

| 수락됨

답변 있음
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년 전 | 0

| 수락됨

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

대략 8년 전 | 0

답변 있음
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년 전 | 0

답변 있음
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년 전 | 0

답변 있음
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년 전 | 1

| 수락됨

답변 있음
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년 전 | 0

답변 있음
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년 전 | 0

답변 있음
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년 전 | 2

| 수락됨

답변 있음
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년 전 | 0

| 수락됨

답변 있음
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년 전 | 0

답변 있음
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년 전 | 6

답변 있음
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년 전 | 0

답변 있음
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년 전 | 0

답변 있음
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년 전 | 0

답변 있음
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년 전 | 2

답변 있음
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년 전 | 0

답변 있음
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년 전 | 0

| 수락됨

답변 있음
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년 전 | 0

더 보기