Community Profile

photo

Ruger28


Last seen: 6日 前
53 2019 年以降の合計貢献数

Ruger28's バッジ

  • Thankful Level 2
  • 6 Month Streak
  • Knowledgeable Level 2
  • First Answer

詳細を表示...

貢献した分野
表示方法

回答済み
Axis: no labels but grid on
set(gca,'XTickLabel','','YTickLabel','','ZTickLabel','');

17日 前 | 1

| 採用済み

回答済み
Skip specific line from a text file
One approach using fgetl. Another would be to read the entire file in, and just search and throw out that line. fname = '409.tx...

約1ヶ月 前 | 0

回答済み
Reading single value from text file
One approach, which only works if these files dont change would be to read in and point to directly where the value is. fname =...

約1ヶ月 前 | 1

回答済み
matrix creation from a loop
The two other answers are a more correct way of doing it. There is no need to create this many variables in your workspace. Howe...

約1ヶ月 前 | 0

回答済み
rename part of a file names in folder
Use regexprep FileName = 'd10-raw-LT-4000_xyz123.txt'; FileName = regexprep(FileName,'raw-LT-',''); % Output FileName = ...

約1ヶ月 前 | 1

| 採用済み

回答済み
Jet Colormap with black and white at the ends
You could just create a colormap, and then add a single row for black and a row for white at the beginning and the end respectiv...

約1ヶ月 前 | 0

回答済み
how to store vectors into matrix
A = [1 2 3 4]; B = [5 6 7 8]; C = [A;B] In a loop: Sum_Matrix = []; % pre-allocate if you know how many total elements in ar...

2ヶ月 前 | 0

回答済み
GUI, make a handle disappear
As suggested above, make all of the items you would like to "disappear" (turn visibility off) by lumping them together in a sing...

2ヶ月 前 | 1

回答済み
Mask Password with asterisk in edit field used in app designer
I have created a sample app that just has one EditField (text) setup a public property, called PasswordVal add the UIFigureWin...

5ヶ月 前 | 0

回答済み
how to read a table from a CSV file with multiple header
fname = 'MyCSV.csv'; headerlines = 2; CSV_Data = dlmread(fname,',',headerlines,0); % filename, delimiter, row offset, column...

5ヶ月 前 | 0

回答済み
how to create histogram for each value of a matrix
M=[1,1,2,3; 0,4,2,2; 1,1,1,1]; N = M(:); % make into vector [SortedMat,I] = sort(N); % so...

5ヶ月 前 | 0

質問


Create a 1 x m Structure instead of a 1x1 Structure
Hello, Im tring to create a 1 x m structure instead of a 1x1. When doing the following, it creates a 1x1 struct MySturcture.Fi...

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

3

回答

質問


Combine 2 Cell Matrices into One
Hello, Im trying to combine data from two matrices into one. An example: A = {'A','B','C';'A','B','C'}; B = {'1','1','1';'2',...

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

1

回答

質問


How can you store values in App Designer like you can in GUIDE?
Hello, Im trying to store some variables in App Designer like I can in GUIDE using handles. In GUIDE for example, I could do:...

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

1

回答

回答済み
have two columns that are the same size but one of them has NAN on the first and last row, how would i delete those rows for both columns
a = 1:10; b = 1:10; b(1) = NaN; b(end) = NaN; NaN_Vals = find(isnan(b)); a(NaN_Vals) = []; b(NaN_Vals) = [];

8ヶ月 前 | 0

| 採用済み

回答済み
How to save multiple figures with subplots as a single .fig file in an for loop
Try this. Pay special attention to the last line. % within the for loop figs(1,1)=figure; subplot(2,2,1) cdfplot(baseavgpric...

8ヶ月 前 | 0

回答済み
Deleting rows of a table using for loops if consecutive terms in the first column are the same
Please - next time use the code format. It makes this easier to look at. You're deleting an active part of the table, and changi...

8ヶ月 前 | 0

回答済み
How do I define and use a standard range written by variable
N = 1; RangedValues = [690*N:1200*9]; % set your range, assuming your values are always 690 and 1200 * N Num2Check = 1459; % ...

9ヶ月 前 | 0

回答済み
Move Files from different folder into one.
actually, I like this one better --> rdir MainDirectory = 'C:\Users\80CDGZ1\Documents\Data_EXCOG\EC01\Run1' EndDirectory = 'C:...

9ヶ月 前 | 0

回答済み
Disallow running an App in an older version of ML?
if verLessThan('matlab','9.4') % 2018a = 9.4 disp('Version of Matlab is too old. Please open in MATLAB 2018a or later.') e...

10ヶ月 前 | 0

回答済み
Changing variable name from input string
Chiming in for a 3rd opinion. I have used this in the past succesfully. Depth = [1:100]; prompt = 'What would you like to rena...

10ヶ月 前 | 0

回答済み
Repeating values on colorbar
Using the example given by Image Analyst, I commented out the Limits lines of code, and it works as intended. Give that a try. ...

10ヶ月 前 | 1

回答済み
How to select legend in multiple subplot?
Just add the legend line in each "program". (first program) subplot(2,2,1) plot(x,S) hold on subplot(2,2,2) plot(x,E) leg...

10ヶ月 前 | 1

回答済み
Conditional Statements Between Two Arrays
a = 1:100; b = 1:2:100; c = ismember(a,b); % index of values of array a inside of array b d = a(c); % the values inside of a ...

11ヶ月 前 | 0

| 採用済み

回答済み
Saving mat file with prefix over loop
Your Edited .mat file does not exist, so you must create it. Check to see if it exists, if it does, append. If it does not, crea...

11ヶ月 前 | 0

回答済み
Remove consecutive values from vector
a = [1;2;3;7;10;11;12]; x = diff(a); y = vertcat(true,x~=1); % shift index down to grab first number a(y); a = 1 7 ...

11ヶ月 前 | 1

| 採用済み

回答済み
How to plot a maximum value on an existing line graph
Please use the code formatting. A=figure x=[t]; y1=[Ethanol]; y2=[X] % Plot frst graph subplot(1,2,1); plot(x,y1); hold...

11ヶ月 前 | 2

回答済み
How can i get latex symbols in my figure title with the use of variables?
I dont have all of your variables, but I personally like sprintf. I would strcat your title using strcat to bring it all togethe...

11ヶ月 前 | 0

| 採用済み

回答済み
how can I FIND column of array part from another large array?
MATLAB has a function for this : ismember doc ismember B=[11 22 33 44 55 66 77 99 12 13 16 17]; A=[11 44 33 22 55 66 77 1...

11ヶ月 前 | 0

| 採用済み

回答済み
Colour legend for scatter plot
x = [1:50]; % fake x data y = [1:50]; % fake y data z = [1:50]; % "intensity" scatter(x,y,50,z,'filled'); cb = colorbar; % c...

11ヶ月 前 | 1

Load more