Answered
Extract data from all values of a containers.Map collection
This doesn't involve any loop, either explicit or via any of the ***fun functions. However all the structures in the map must ha...

15 Tage ago | 0

| accepted

Answered
average each block of class in a matrix
It's unclear how your input data is actually stored in matlab so please clarify if the below doesn't apply. I'm assuming that y...

15 Tage ago | 0

| accepted

Answered
accidentally changing built-in code from checking it by clicking on the error line
You would have to save the file before matlab sees the changes. Additionally, on Windows if you haven't messed up with the defau...

15 Tage ago | 1

| accepted

Answered
datasample/bootstrap procedure
In the following, I'm assuming that residuals and carhartt are both matrices. It looks like they are from your code. If not the ...

17 Tage ago | 0

| accepted

Answered
How to convert time into nearest hour and to do interpolation of NaN values extracted from .csv file?
Here's how I'd import your data. opts = detectImportOptions('see.csv'); %let matlab figure out the format of the file. opts ...

17 Tage ago | 1

| accepted

Answered
set class property only once
It sounds like you want a singleton property. This is how I'd designed it. As commented in Steven's answer, this doesn't and sho...

18 Tage ago | 1

| accepted

Answered
Making a group of maximum nearest elements.
Be aware that the following creates a temporary matrix of size numel(A) x numel(B), so if both vectors are very large you may ru...

19 Tage ago | 0

| accepted

Answered
time align two files
In your example, what you're asking is simply: M(P(:, 2) ~= 1, :) = [] %remove all rows of M for which the corresponding row o...

19 Tage ago | 0

| accepted

Answered
How two fuse two sets of images?
Step 1: Download Stephen's natsortfiles. Then adapt as needed. I still don't know what you want as output. I assume new images ...

19 Tage ago | 0

| accepted

Answered
readtable() interpreting HEX as scientific
In recent versions of matlab, the easiest would be to use detectImportOptions and override the relevant variable type to force i...

19 Tage ago | 2

| accepted

Answered
Error with Set function when I am trying to change the Xlabel form a figure (Unable to use a value of type matlab.ui.Figure as an index.)
Rather than giving us a screenshot of the code, which we can't copy and edit, paste your code directly in your question. Also it...

20 Tage ago | 0

| accepted

Answered
How to compare two excels for matches and differences row by row in Matlab?
allrows = readmatrix('your1stexcelfile'); %readmatrix requires R2019a or later singlerow = readmatrix('your2ndexcelfile'); ...

20 Tage ago | 1

Answered
can someone suggest to make this code faster
If I understood correctly: pixels_dayofyear = load('all_doy.mat'); pixels_temperature = load('all_variable.mat'); assert(iseq...

20 Tage ago | 0

| accepted

Answered
Help when trying to exclude matrix values while indexing!
"the second (II) does not and returns a NaN value" Firstly, find never returns NaN. It can return an empty array, this is not t...

20 Tage ago | 0

Answered
Customize how my class is displayed as a property of any other class.
"I can make my class inherit from your mentioned parent classes, but i cannot view those classes.. so there is no way of finding...

21 Tage ago | 1

| accepted

Answered
How to assign a column of text string to another variable?
A = repmat('test', 5,1); replicates the 1x4 char array 'test' 5 times along the rows, resulting in a 5x4 matrix of 20 character...

21 Tage ago | 0

| accepted

Answered
how to make a response for more than one period?
Your question is still very unclear. I think you're saying that in another function you've got a loop that calls your function ...

21 Tage ago | 0

Answered
Can I import dynamic data from a private server into Matlab?
How easy this is to do is going to depend on the server (how it is implemented). You would use one of webread, webwrite or websa...

22 Tage ago | 1

Answered
how to separate a matrix according to class labels?
classmatrices = splitapply(@(rows) {yourmatrix(rows, :)}, (1:size(yourmatrix, 1)'), yourmatrix(:, 3)) is one way. Note that in ...

24 Tage ago | 1

Answered
Numeric matrix to string matrix
The easiest way, by far, to do this in matlab is: A = [1 2 45 4 ; 5 6 45 8]; %demo data result = discretize(A, [-Inf, 30, 50...

24 Tage ago | 1

Answered
rounding numbers in a specific values
multiply by 2, round to the nearest integer, divide back by 2 => round to the nearest 1/2: >> Num = 10.25; >> round(Num*2)/2 ...

24 Tage ago | 0

| accepted

Answered
Fastest way to find unique cells in a logical cell array
Why are you using a cell array to start with? A 6x6x4096 matrix would be more efficient in term of speed and memory. It also mak...

24 Tage ago | 0

| accepted

Answered
remove all ones from matrix in combinantion
Your problem is a covering problem. A search on the file exchange may find some solutions there. I've not understand your after...

24 Tage ago | 1

| accepted

Answered
Calculate multiple means in table by column indices
newtable = groupsummary(yourtable, {'Phase', 'Time'}, 'mean', 4:width(yourtable)) %mean of all but the first 3 variables, groupe...

25 Tage ago | 0

| accepted

Answered
How to subset data based on time range
It's not too clear what you mean by subsetting.If you want to bin the dates in ranges of 18 hours then use discretize: discreti...

25 Tage ago | 0

Answered
XML file generation in matlab
First, whenever you copy/paste code multiple times and only change an index each time you need to realise that you need to repla...

25 Tage ago | 0

| accepted

Answered
how to concatenate two tables into one such that the timestamps of two tables are in sequence and the corresponding values are arranged according to their timestamps
It should be very easy. Convert your tables to timetables (if they're not already) then call synchronize: speedtimetable = tabl...

25 Tage ago | 0

Answered
How to show all cell contents
I want to see all the Genes array components Unless you code your own table display function, which would be a fair amount of w...

25 Tage ago | 2

Answered
use of comma & semi colon
You're asking a very basic question. 5 minutes with any tutorial would have answered it. We recommend that you go through the fr...

25 Tage ago | 0

| accepted

Answered
how to find y value from the 3d graph with a known x and z values
Seems fairly simply, just build a scattered interpolant and use that to interpolate your query points. x=[2.6,5.2,14,23.3,28.3,...

26 Tage ago | 0

| accepted

Load more