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

mehr als 8 Jahre vor | 0

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

mehr als 8 Jahre vor | 0

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

mehr als 8 Jahre vor | 0

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

mehr als 8 Jahre vor | 0

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

mehr als 8 Jahre vor | 0

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

mehr als 8 Jahre vor | 0

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

mehr als 8 Jahre vor | 0

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

mehr als 8 Jahre vor | 0

| akzeptiert

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

mehr als 8 Jahre vor | 2

| akzeptiert

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

mehr als 8 Jahre vor | 0

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

mehr als 8 Jahre vor | 0

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

mehr als 8 Jahre vor | 0

| akzeptiert

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

mehr als 8 Jahre vor | 0

| akzeptiert

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

mehr als 8 Jahre vor | 0

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

mehr als 8 Jahre vor | 0

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

mehr als 8 Jahre vor | 0

Beantwortet
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},':',''...

mehr als 8 Jahre vor | 1

| akzeptiert

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

mehr als 8 Jahre vor | 0

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

mehr als 8 Jahre vor | 0

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

mehr als 8 Jahre vor | 2

| akzeptiert

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

mehr als 8 Jahre vor | 0

| akzeptiert

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

mehr als 8 Jahre vor | 0

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

mehr als 8 Jahre vor | 6

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

mehr als 8 Jahre vor | 0

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

mehr als 8 Jahre vor | 0

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

mehr als 8 Jahre vor | 0

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

mehr als 8 Jahre vor | 2

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

mehr als 8 Jahre vor | 0

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

mehr als 8 Jahre vor | 0

| akzeptiert

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

mehr als 8 Jahre vor | 0

Mehr laden