**Statistics**

RANK**36**

of 258,022

REPUTATION**4,810**

CONTRIBUTIONS

**0** Questions

**1,638** Answers

ANSWER ACCEPTANCE **
0.00%
**

VOTES RECEIVED**415**

RANK

of 17,781

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**

Hello, Could anyone please help me with this issue. In this code, I want to save the output results after each increment in excel and I am unable to do it. Thanking you .

V is a 3-by-1 column vector in each iteration of the for loop, so one way to save them all is to make V a matrix instead, calcul...

1 hour ago | 0

How can I generate a Contour Plot from 1 column of Z data?

reshape the column vector to a matrix of the appropriate size, which is 8-by-225 (Ny-by-Nx). That can be done in two ways, and t...

1 hour ago | 0

| accepted

For loop for Sine wave function

Yes, you can avoid that warning by pre-allocating sweptsin to the size it needs to be, which is the same size as t: T=5; %size ...

1 hour ago | 0

Error importing .csv file with import script generated but not with green tick import button

The problem is that the line endings in that file are \r\r\n, i.e., two carriage return characters followed by a newline charact...

1 hour ago | 0

Operate on 3d matrix based on 2d logical

You can manipulate B to be the same size as A and then use B as a logical index into A: % a (smaller) random 3D matrix: A = ra...

2 hours ago | 0

Reading complicated CSV file

Something along these lines might be of use: % get the numbers from the first two lines of the file; % maybe modify this depen...

19 hours ago | 2

How to create random matrix with specified step in interval [a, b]

a = 5; b = 34; step = 3; offset = 2; n_levels = 1+floor((b-a)/step) % for your reference, showing the min and max % ran...

22 hours ago | 0

| accepted

Problem with cycle within a cycle output

You've got to re-initialize h to 1 before each h loop; otherwise you just get h=9 after the first time the h loop completes. As...

23 hours ago | 1

How to open and read .ffs file matlab?

% (first, make the attached .txt file an .ffs file) copyfile('SpiralAntennaBox_v02_FarField_4p5GHz.txt','SpiralAntennaBox_v02_F...

1 day ago | 0

| accepted

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(:...

1 day ago | 0

| accepted

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'}) ...

1 day ago | 0

| accepted

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

1 day 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...

2 days ago | 1

| accepted

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

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

2 days 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...

2 days 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...

2 days 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...

2 days 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 ...

2 days 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 ...

2 days 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 =...

2 days ago | 0

| accepted

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

2 days 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 ...

3 days 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...

3 days 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...

3 days ago | 0

How I convert matrix 8760x1 to 365x24

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

3 days 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'...

3 days 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...

3 days 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 ...

3 days 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...

3 days ago | 0

| accepted