解決済み


Dimensions of a rectangle
The longer side of a rectangle is three times the length of the shorter side. If the length of the diagonal is x, find the width...

6ヶ月 前

回答済み
Create plot with gradient descend vectors for function of 2 variables
My apologies for the double-response. I accidentally answered your question as a comment rather than as an answer. If I am unde...

6ヶ月 前 | 0

回答済み
An automatic way to change \ with / (windows vs. unix) only for "addpath"?
file_name = '/Users/XXX/Documents/...'; file_name = strrep(file_name,'/','\'); addpath(file_name) EDIT: Just to explain, I am...

6ヶ月 前 | 1

回答済み
how to xlimit for 3 different plot in 1 figure?
% Example plot subplot(3,1,1) plot(rand(10,10)) subplot(3,1,2) plot(rand(10,10)) subplot(3,1,3) plot(rand(10,1...

6ヶ月 前 | 0

回答済み
I have "step" data and I want value only on the steps
If you want to count each step as being any increase from the previous value then this is what you want: locs= []; for i = 2:l...

6ヶ月 前 | 0

回答済み
Why do I get "Array indices must be positive integers or logical values" when I am trying to plot my functions?
In MATLAB, indexing starts at 1, so you cannot have C(0), i(0), or y(0). Rather, it needs to be C(1), i(1), or y(1). EDIT: @Ma...

6ヶ月 前 | 1

回答済み
Handling Undesirable Characters in Numeric Columns When Reading a CSV File
If you have Microsoft Excel (or Google Sheets) you can use the Replace Tool to get rid of the [u.] in all of the columns. Simply...

6ヶ月 前 | 0

回答済み
Problem with saving surf plot in vector format
It is odd, but even though MATLAB allows you to save plots as SVG files I am not certain that it allows you to import SVG files....

6ヶ月 前 | 0

回答済み
Boxplot with equal spaced interval?
Are you asking for something like this? % Fake data xdata = 1:200; ydata = randn(30,200); % Extract every tenth column id...

6ヶ月 前 | 0

| 採用済み

回答済み
How can i make the legend as shown in the figure attached?
Generating some example data (use your actual data instead of this) % Generating fake experimental data since I don't have your...

6ヶ月 前 | 1

| 採用済み

回答済み
heatmap NaN Color replacement BUG
Instead of using the NanColor name-value pair (which I don't even see in the documentation?), you can try saving the plot to an ...

6ヶ月 前 | 0

| 採用済み

送信済み


Radial histogram for categorical data
Make radial histograms (a.k.a. polar histogram or circular histogram) for visualizing categorical data

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

Thumbnail

質問


Is there a better way to plot categorical data radially than using the polarhistogram function?
It is easy to plot categorical data with the histogram function: authors = categorical({'Austen','Bradbury','Brown','Brown','Br...

6ヶ月 前 | 1 件の回答 | 0

1

回答

解決済み


Encode Roman Numerals
Create a function taking a non-negative integer as its parameter and returning a string containing the Roman Numeral representat...

7ヶ月 前

解決済み


Return a list sorted by number of occurrences
Given a vector x, return a vector y of the unique values in x sorted by the number of occurrences in x. Ties are resolved by a ...

7ヶ月 前

質問


How to fully display y-axis labels if they do not fit inside of the figure window when specifying a figure size and using subsubplot?
I am using the subsubplot function from the Climate Data Toolbox to make a figure that is 3 inches wide by 4 inches tall, but th...

10ヶ月 前 | 1 件の回答 | 0

1

回答

質問


How to efficiently extract 2-D data from multiple text files and save it as a single 3-D variable?
I have 456 comma-delimited text files. Each file represents one month of climate data, containing 600 rows and 900 columns. I w...

2年以上 前 | 1 件の回答 | 0

1

回答

質問


How to test whether two arrays are statistically different?
This may be a silly question, but I don't have much of a background in statistics and I want to make sure I do this properly. I...

2年以上 前 | 1 件の回答 | 0

1

回答

解決済み


Sum all integers from 1 to 2^n
Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.

2年以上 前

解決済み


Magic is simple (for beginners)
Determine for a magic square of order n, the magic sum m. For example m=15 for a magic square of order 3.

2年以上 前

解決済み


Make a random, non-repeating vector.
This is a basic MATLAB operation. It is for instructional purposes. --- If you want to get a random permutation of integer...

2年以上 前

解決済み


Roll the Dice!
*Description* Return two random integers between 1 and 6, inclusive, to simulate rolling 2 dice. *Example* [x1,x2] =...

2年以上 前

解決済み


Number of 1s in a binary string
Find the number of 1s in the given binary string. Example. If the input string is '1100101', the output is 4. If the input stri...

2年以上 前

解決済み


Return the first and last characters of a character array
Return the first and last character of a string, concatenated together. If there is only one character in the string, the functi...

2年以上 前

解決済み


Create times-tables
At one time or another, we all had to memorize boring times tables. 5 times 5 is 25. 5 times 6 is 30. 12 times 12 is way more th...

2年以上 前

解決済み


Getting the indices from a vector
This is a basic MATLAB operation. It is for instructional purposes. --- You may already know how to <http://www.mathworks....

2年以上 前

解決済み


Determine whether a vector is monotonically increasing
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...

2年以上 前

解決済み


Check if number exists in vector
Return 1 if number _a_ exists in vector _b_ otherwise return 0. a = 3; b = [1,2,4]; Returns 0. a = 3; b = [1,...

2年以上 前

解決済み


Swap the first and last columns
Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...

2年以上 前

解決済み


Swap the input arguments
Write a two-input, two-output function that swaps its two input arguments. For example: [q,r] = swap(5,10) returns q = ...

2年以上 前

さらに読み込む