回答済み
I just want to run my script within a certain time periodically. That's it all ....
Use https://www.mathworks.com/help/matlab/ref/timer.startat.html This is the function that lets you specify an absolute time ...

2ヶ月 前 | 1

| 採用済み

回答済み
Why is my table being saved in a wrong way in a CSV file?
"Why is my table being saved in a wrong way in a CSV file?" Why do you think that MATLAB is doing something wrong? "but when I...

2ヶ月 前 | 0

回答済み
Split File paths by '\' but file paths have varying subfolders and thus lengths
Your code is very complex. You can simplify it by letting DIR recursively parse the folder structure. Lets try it here: mkdir ...

2ヶ月 前 | 0

| 採用済み

回答済み
How to create struct of cell arrays
"I was wondering if this is the most "MATLABic" way of doing that" Yes. "...and why the following does not work" Because by d...

2ヶ月 前 | 0

| 採用済み

回答済み
cheatsheet for dealing with structures?
"im trying to get all timestamps "timestamp" (for finding duplicate fields) of sub stucture "trainLocations" from every first ce...

2ヶ月 前 | 0

| 採用済み

回答済み
importing multiple excel workbooks with multiple sheets into a cell array.
Based on my comment to your previous question: P = 'D:/foo/bar'; % absolute or relative path to the parent directory S = dir(f...

2ヶ月 前 | 0

| 採用済み

回答済み
How to get specified data in table
Where T is your table: idx = strcmpi(T.OutputCase,'Pushover-x'); out = T(idx,{'StepNum','GlobalFX','GlobalFZ'}) https://www.m...

2ヶ月 前 | 0

| 採用済み

回答済み
What is the fastest way to do repeated element wise matrix multiplication?
Reduce the number of operations inside the loop by replacing TIMES and SUM with MTIMES (of course adjusting the matrix/vector or...

2ヶ月 前 | 0

| 採用済み

回答済み
Dealing data with text and numerical in .txt file
T = readtable('data.txt', 'Delimiter',{' ',':',','}, 'MultipleDelimsAsOne',true)

2ヶ月 前 | 0

回答済み
Struct field name with space or special character
"Is there a way to have space in structure field names?" No.

2ヶ月 前 | 2

回答済み
Editing csv data and convert it into a table
Lets fix the file so that it is formatted as a proper CSV file. Then importing it is trivial. S = readlines('EnergyLIS.csv') % ...

2ヶ月 前 | 2

回答済み
Convert double to datetime when importing .csv
T = readtable('Trace.csv', 'Delimiter',';', 'VariableNamingRule','preserve') P = wildcardPattern + "(X)"; F = @(n) datetime(n,...

2ヶ月 前 | 0

| 採用済み

回答済み
how to automate this manual code containing if else conditons?
S = [1 1 1 1 2 2 2 2 2 2]; V{1} = [20 10 40 50 40 30 20 10 20 30]; V{2} = [10 20 30 20 10 30 20 40 20 30]; M = vertcat(V{:});...

2ヶ月 前 | 1

| 採用済み

回答済み
Creating a colorbar in Matlab
"Is this colorbar automatic colors? As in Matlab picks its default colours?" Yes. The default colormap is described here: http...

2ヶ月 前 | 0

| 採用済み

回答済み
Array indices must be positive integers or logical values. Error
x1= -2:0.01:2; % decimal comma -> point f1 = x1.^2-1; f2 = sin(x1); h1 = plot(x1,f1,'b',x1,f2,'r') % removed superfluous inde...

2ヶ月 前 | 0

| 採用済み

回答済み
using "&" with logical array
"why is not correct using &?" Who says that it is not "correct" ? What you show is not a code error (underlined in red), it is ...

2ヶ月 前 | 0

| 採用済み

回答済み
How do I control the format of the date stamp on a plot axis with datetime values?
That is named the secondary label and has some rather rudimentary controls, e.g.: https://www.mathworks.com/help/matlab/ref/xse...

2ヶ月 前 | 0

| 採用済み

回答済み
I don't know how to fix this, and I honestly don't know what caused this with chebfun
"...I honestly don't know what caused this with chebfun" You modified the function (perhaps accidentally) by adding some code o...

2ヶ月 前 | 0

| 採用済み

回答済み
A bug? input: 1/0 output: -Inf
"A bug? input: 1/0 output: -Inf" Not a bug. Because your value x is actually negative zero not positive zero: https://en.wikip...

2ヶ月 前 | 3

| 採用済み

送信済み


Number to Scientific Prefix
Convert a numeric value to SI-prefixed text (aka engineering / metric prefix). Bonus: binary prefixes!

2ヶ月 前 | ダウンロード 20 件 |

Thumbnail

送信済み


Scientific Prefix to Number
Convert SI-prefixed text (aka engineering / metric prefix) into numeric values. Bonus: binary prefixes!

2ヶ月 前 | ダウンロード 5 件 |

Thumbnail

回答済み
Weird display in date plotting
Lets convert your data into DATETIME (as they should be) and PLOT them: Date = {'2009-12';'2010-01';'2010-02';'2010-03';'2010-0...

2ヶ月 前 | 0

回答済み
load .mat files in loop
Create some fake data files (it is much better when you provide some data files for us to work with): X=1; save 'S_out_02-10-20...

2ヶ月 前 | 1

| 採用済み

回答済み
Not able to save a ".mat" file when the excel workbook is fetched within a function
"I am trying to fetch an excel sheet from a function and save it as a ".mat" file" That task is much easier and much more relia...

2ヶ月 前 | 0

| 採用済み

回答済み
error Unrecognized function or variable help me please :(!
That really is very bad data design: one single numeric array would be much better than storing lots of numeric scalars in a hug...

3ヶ月 前 | 0

回答済み
Put the separator every thousands
Here are some more interesting testcases (with both one hundred million as well as one billion): S = ["100000000";"1000000000";...

3ヶ月 前 | 0

| 採用済み

回答済み
Is there a way to "vectorize" this segment of code?
S = string(randi([0,9], 5,4)) D = str2double(join(S,""))

3ヶ月 前 | 1

| 採用済み

回答済み
Renaming group of files
P = '.'; % absolute or relative path to where the files are saved. F = 'image*.bmp'; % filename with wildcard and file extensio...

3ヶ月 前 | 0

回答済み
How to have a user select a file and then matlab automatically go into multiple subfolders and pull out a multiple text files and import them in as a table
Let DIR to do the work for you! DIR will happily search in subfolders for specific files, if you tell it to: P = uigetdir('C:\u...

3ヶ月 前 | 0

| 採用済み

回答済み
How to use setvaropts for strangely-formatted text file
First lets see if READTABLE et al can ignore those space characters on a simple test file: type testformat.csv readtable('test...

3ヶ月 前 | 1

| 採用済み

さらに読み込む