Answered
How to read CSV file and save the result to another CSV file
a simple structure: outDir = yourDestination. allCsvFiles = dir(fullfile(yourDirectory, '.*csv')); for iA = 1:length(allCsv...

5 years ago | 0

| accepted

Answered
Avoid reading diagonal and redundant symmetric elements
use tril or triu function to get the lower or upper triangular matrix. Or use diag to get nonmain diagonal elements.

5 years ago | 0

| accepted

Answered
Visualise Large correlation matrix
You can visualize a matrix by heatmap using imagesc function. >> test = randn(100, 100); >> figure; imagesc(test); colorbar;

5 years ago | 0

Answered
how to find the smallest length filled with numbers
[~, indCol] = min(sum(~isnan(yourArray), 1)); indCol is the index for the column you need.

5 years ago | 0

| accepted

Answered
How to use uigetfile to plot the contents of a file?
your property block shows that your property name is selecplot while when you use it, you used selectplot.

5 years ago | 0

| accepted

Answered
Filtering and Cleaning Data
A simple work around: b = DADOSUFCS2(:, 2); bstd = movstd(b, 100); thre = nanmean(bstd); bnew = b(bstd <= thre);

5 years ago | 0

Answered
Seperating data into matrices based on names
I'm not sure what type do you use for data. Is that a table or a struct? I prefer using table. You can do findgroups first and a...

5 years ago | 0

| accepted

Answered
create zero column vector
x is your input of the function, and within the function body, you overwrite it by assignment. and you don't have any output in ...

5 years ago | 0

Answered
How do I would I add several matrices into one large matrix? (Assembling a global stiffness matrix for FEA)
https://www.mathworks.com/matlabcentral/answers/513014-how-would-i-add-several-matrices-into-one-assembling-global-stiffness-mat...

5 years ago | 0

Answered
how would I add several matrices into one? (assembling global stiffness matrix for FEA)
To achieve your example, it's easy. You just need to think a bit about matrix multiplication. see below >> A = [1 1; 1 1]; >> ...

5 years ago | 0

Answered
Filtering and Cleaning Data
Technically, this is not a programming issue. rather, this is an issue about algorithm. It's all depending on what you meant by ...

5 years ago | 0

Answered
How can I sum the elements in a vector row without using the sum function or any form of loops?
I don't quite understand your point about not using the function sum. But it is definitely possible to not use any form of loop....

5 years ago | 0

Answered
How to efficiently plot functions?
If t is a vector, you use plot(t, y); that will automatically plot each column of y against vector t.

5 years ago | 0

Question


replace function in tall array. This indicates an internal error. Please contact MathWorks Technical Support.
I'm trying to replace a bunch of strings with meaningful strings in each column of a tall array. In the reference for replace fu...

5 years ago | 2 answers | 0

2

answers

Answered
plotting a function with evenly spaced x values
If you define x first, I believe it's easy to write down the y? x = 0:0.1:1; y = (x.^2).*cos(pi.*x)) ./ (((x.^3) + 1).*(x + 2)...

5 years ago | 0

| accepted

Question


Error when assigning categories to a tall array
I ran into a wiered problem for me as when I tried to assign categories to a tall array, it failed while it went through if I us...

5 years ago | 1 answer | 0

1

answer

Answered
Problem with debugging in MATLAB
If everytime you use step in during debug, MATLAB will step in each subroutine and sub-subroutines, and so on, because it's own ...

5 years ago | 0

| accepted

Answered
How can extract specific value from a column contains 3 conditions
I assume that you are using datastore and tall array. Suppose tb is your tall table. You can use tb1 = tb(tb.(3) == 1, :) to ge...

5 years ago | 0

| accepted

Answered
How to represent greek letters in matlab?
Where do you want to show them? On a figure object, MATLAB fully supports latex or tex syntax. You can use, e.g., text(yourXvalu...

5 years ago | 0

Answered
Convert hourly temperature data into daily in the specific time interval
If this is in a datetime variable type, how about you offset your original time by 1 hr (e.g., yourVarName - hours(1)). After th...

5 years ago | 0

| accepted

Answered
How to remove a column from a cell with matrices?
outCell = cellfun(@(x) x(:, end), inputCell, 'UniformOutput', 0) should work otherwise switch UniformOutput to 1 and try.

5 years ago | 0

Answered
remove trend in temperature data
You may try to use wavelet decomposition (wavedec). You can estimate how many layers you may need to proximate the approximation...

5 years ago | 0

| accepted

Answered
For loop inside a loop
It is difficult to understand where your error occurs, and it is difficult to know what variable types are. Based on your code ...

5 years ago | 0

Answered
Extracting Data From an Array Determined by the Data Value
what don't you index your array by the last column? for example, myData is the array you mentioned with five columns, and suppo...

5 years ago | 0

Answered
Plot legend for loop
You can try assign each line with a handle by hold on iHandler = 1; for i = 0.1:0.001:1 iHandler = plot(i,cos(i)); ...

5 years ago | 0

Question


Internal problem while evaluating tall expression (requested 40.5 GB array)
Hi, I'm working with a large data set with approximately 500k rows and 6k columns. I'm using a datastore and tall array to handl...

5 years ago | 0 answers | 0

0

answers