**Statistics**

RANK**36**

of 257 947

REPUTATION**4 776**

CONTRIBUTIONS

**0** Questions

**1 629** Answers

ANSWER ACCEPTANCE **
0.00%
**

VOTES RECEIVED**412**

RANK

of 17 774

REPUTATION**N/A**

AVERAGE RATING**0.00**

CONTRIBUTIONS**0** Files

DOWNLOADS **0**

ALL TIME DOWNLOADS**0**

CONTRIBUTIONS**0 Posts**

CONTRIBUTIONS**0** Public Channels

AVERAGE RATING

CONTRIBUTIONS**0** Highlights

AVERAGE NO. OF LIKES

**Content Feed**

How to sort heatmap columns based on outside data

array = rand(13,28); idx = [13 5 24 23 17 15 3 12 1 25 26 4 18 10 27 14 21 7 20 19 8 28 11 2 6 22 16 9]; h = heatmap(array(:...

ungefär 12 timmar ago | 0

Cross product of two tables without common key

table1 = table(["A";"B";"C"],'VariableNames',{'Name'}) table2 = table([1;2;3;4],[0;0;0;0],'VariableNames',{'Number','Count'}) ...

ungefär 12 timmar ago | 0

wavelet denoising of signal

Wavelet Signal Denoiser. Alternatively, something like this may be similar to what you had in mind: C = randn(1,100); metho...

ungefär 12 timmar ago | 0

| accepted

Why do I get wrong multiplication result?

teta and phi are row vectors of the same length, so this expression: exp(1i*k*sin(teta).*(m*dx*cos(phi)+n*dy*sin(phi))); is al...

ungefär 14 timmar ago | 1

| accepted

help on graph (w/o common matrix plotting built-in functions)

data = randi([0 1],10,30) imshow(1-data)

ungefär 16 timmar ago | 0

Multiply two cells of an table.

EM_Volllastkurve = table([0;100;200;300],[550;550;550;550],'VariableNames',{'Drehzahl' 'Drehmoment'}) To multiply (row 1, colum...

ungefär 16 timmar ago | 1

| accepted

Inaccurate results when writing xls through writetable

From the documentation for writetable: If filename is the name of an existing spreadsheet file, then the writing function write...

ungefär 17 timmar ago | 0

| accepted

I want to compare every matrix element to a constant then calculate a new matrix based on every case

Use logical indexing: A = [ 1 2 3 4 5 ]; b = 3; C = zeros(size(A)); C(A < b) = A(A < b)*b; C(A >= b) = A(A >= b)+b; di...

ungefär 18 timmar ago | 0

| accepted

How can I export a string to a .txt file?

From the documentation for save: "Use one of the text formats to save MATLAB numeric values to text files. In this case: Each ...

ungefär 19 timmar ago | 0

Batch processing using for loop

load with no output loads the contents of the mat file into the workspace, overwriting any variables of the same name that were ...

ungefär 19 timmar ago | 0

| accepted

how to conver to 3d plot to 2d plot well?

You could make a 2d plot of some kind whose color comes from the data in the 3rd dimension, e.g., a surface or a contour: lat =...

ungefär 20 timmar ago | 0

How to plot a line with specific line slope ?

You have to decide where the plotted line segment should start and end. Here's one way you might do that, which is to plot the ...

ungefär 21 timmar ago | 0

| accepted

Extract sub array from d-dimensional array given indices for each dimension

% random 4-D (4x8x5x10) array A: d_siz = [4 8 5 10]; A = randn(d_siz); size(A) % make the index vectors for each dimension ...

en dag ago | 1

How can one display multiple Heatmaps in one figure on the same scale?

You can specify the ColorLimits of all three heatmaps after they are created. Here's a demonstration with some random data: fo...

en dag ago | 0

| accepted

converting MJD in UT1 to calender date

Convert 2017 January 00:00:00.5912977 to year,month,day,hour,,,,,,seconds, as requested: dt = datetime('2017 January 00:00:00.5...

en dag ago | 0

How I convert matrix 8760x1 to 365x24

M = 1:8760; % some 8760x1 matrix M_new = reshape(M,365,[]) % reshape to 365x24

en dag ago | 0

| accepted

How to make a colour gradient with 60 lines on a graph

You can set the ColorOrder property of the axes to control the colors of the plotted lines, without having to specify each line'...

en dag ago | 1

| accepted

Incorrect dimensions for raising a matrix to a power

Check that your inputs to gaussh are all scalars, because it looks like all three input arguments to the function gaussh are exp...

en dag ago | 0

How to find repeated values after decimal in array?

data = [ ... 868.1 567.1 413.1 1159.7 52.1 99.7 126.7 111.1 167.2 1322.2 ...

2 dagar ago | 0

| accepted

Writting multiple files with fopen 'w'

Here's a function (get_unused_file_name) you can use for this purpose. It takes a file name and check if that file already exist...

2 dagar ago | 0

| accepted

I don't understand the condition from FOR row 16 to row 26. Can explain each row form if row to the end please.

Lines 16 through 26: for i=1:rows fprintf('('); for j=1:columns if j < columns fprintf("%.4f , ...

2 dagar ago | 1

| accepted

round to 2 decimal places but still have more than 2 decimal places when storing

"the stored value not storing 2 decimal places." If you mean the value written to file has more than 2 decimal places, that's b...

2 dagar ago | 1

Find min and max datetime in table

T = table( ... [2;2;3;3], ... datetime({'05/20/22';'05/20/23';'04/12/99';'06/12/02'},'InputFormat','MM/dd/yy'), ... ...

3 dagar ago | 0

| accepted

sort the matrix by the order of the first row

A = [ ... 3 5 4 1 2 0.2 0.5 0.7 0.1 0.9 0.7 0.9 0.4 0.3 ...

3 dagar ago | 0

| accepted

ismember to filtered table

That's doing ismember with the names of the files. [a,b]=ismember('meta_data_mri.MRID','MRIdata.subjects') [a,b]=ismember('abb...

3 dagar ago | 0

Can someone run this function and give the results as I have 2017 version and I believe there are some functions that work in latest versions

It appears to run ok in R2017b. I guess that means you have R2017a. Here's the result: openfig('untitled.fig'); If I had to g...

3 dagar ago | 0

| accepted

Deleting rows with an if Statement

Here's a way to delete rows of a matrix if two conditions are both met: x = magic(7) % delete rows of x where the value in col...

3 dagar ago | 0

| accepted

How do I use readtable to read in an Excel file whose first column has indenting that I want to preserve?

opts = detectImportOptions('test.xlsx'); opts.VariableOptions(1).WhitespaceRule = 'preserve'; Ex_MassProps = readtable('test...

3 dagar ago | 1

function with text string input and excel file

warning off all get_car_info('Cars.xlsx','x') get_car_info('Cars.xlsx','y') get_car_info('Cars.xlsx','z') function out = g...

3 dagar ago | 0

| accepted