Community Profile

photo

Voss


Last seen: Today Active since 2013

Statistics

All
  • MATLAB Central Treasure Hunt Finisher
  • Treasure Hunt Participant
  • Most Accepted 2022
  • 12 Month Streak
  • Commenter
  • Leader
  • Thankful Level 4
  • Ace
  • Revival Level 4
  • Knowledgeable Level 5
  • Promoter
  • Scholar

View badges

Content Feed

View by

Answered
How to I read excel file and create a 3d plot?
The plot seems accurate. Take a look at the first row of Epsilons in the file (i.e., corresponding to 20Hz). They are orders of ...

13 hours ago | 0

Answered
down sampling a vector keeping the order of elements values
u=[ 0.0182 0.0253 0.0324 0.0404 0.0487 0.0552 0.0603 0.0643 0.0674 0.0699 ...

15 hours ago | 0

Answered
How to get uigetfile to give unambiguous full paths of selected files
"uigetfile cannot select mutliple files if they are in different paths" One way around this limitation would be to make multipl...

16 hours ago | 1

| accepted

Answered
How to find the closest value pair in a matrix?
A = [0.84 1.26; 0.90 1.24; 0.83 1.30]; Pairs = [0.85 1.25]; [~,idx] = min((Pairs(:,1).'-A(:,1)).^2 + (Pairs(:,2).'-A(:,2)).^...

16 hours ago | 0

Answered
resize and fill table
Here's one way, using a table: t = readtable('file.xlsx'); disp(t); [N,M] = size(t); ii = 2; single_row_table = array2table...

17 hours ago | 0

| accepted

Answered
variable mentioned but still getting unrecognized variable error
yexpected is defined in the main script (i.e., the base workspace), but not in the function objectivefunction, where it is used....

20 hours ago | 0

Answered
How to implement a for cycle to run a sequence of text files with the system command
Here's one way: fid = fopen('system_TXT.txt'); while ~feof(fid) file_name = fgetl(fid); % process file file_name en...

20 hours ago | 0

Answered
Using Matlab App Designer, error using drop down list. Incompatible array sizes.
Instead of using == to compare character vectors, use strcmp. val = app.Country_Select.Value; if strcmp(val,'Jordan') idx...

20 hours ago | 2

| accepted

Answered
Splitting a horizontal legend across two lines
plot(magic(9)) legend({'Data 1', 'Data 2', 'Data 3', 'Data 4', 'Data 5', 'Data 6', 'Data 7', 'Data 8', 'Data 9'}, ... 'O...

23 hours ago | 0

Answered
Can someone help to write a column range vector for a specific calendar year?
vec = repmat([0;1;2;3],365*24,1);

1 day ago | 0

| accepted

Answered
How to manipulate colors in plot for array?
<https://www.mathworks.com/help/matlab/ref/plot.html#btzitot_sep_mw_3a76f056-2882-44d7-8e73-c695c0c54ca8>

2 days ago | 0

Answered
refer to excel data using excel column numbers ?
Use readtable instead of readmatrix.

4 days ago | 0

Answered
Going back in time 1 week or a year
T = readtable('data.xlsx') "Suppose that I am in week 2023/6/16 (yellow cell). For this cell I want to obtain the correspondi...

4 days ago | 0

| accepted

Answered
Why are the data points not being correctly colored to scale in my quiver plot?
See the change below in getColor. % Acoustic Streaming Particle Tracking in Pressurized Conditions % Hydrostatic Conditions %...

4 days ago | 0

Answered
Is there a way to set the default behavior for `format` statement?
https://www.mathworks.com/help/matlab/ref/startup.html

4 days ago | 0

Answered
combining two histograms by category
Data = readtable('worksheet1.xlsx'); % histogram 1 group1dx = startsWith(Data.mode,'Active'); group1Data = Data{group1dx,...

5 days ago | 0

| accepted

Answered
How can I make a textbox selectable?
One way to set the Selected property via mouse click is to define a ButtonDownFcn for each textbox. For example this will allow...

5 days ago | 1

| accepted

Answered
Fixed plot and variable-loop plot
One way would be to create the variable line once before the loop, and update its YData inside the loop. % some random rh: rh ...

5 days ago | 1

| accepted

Answered
How do I create a 3D plot using the messgrid command from data within an Excel file?
data_epp=readtable('Epsilon_Prime.xlsx'); % reads data x=data_epp{1,3:end}; % temperature(C) y=data_epp{2:end,1}; ...

6 days ago | 0

Answered
Use imhist in tiled layout
You're right, imhist doesn't seem to be very compatible with tiledlayout. Here's a workaround that might work for you: % B = i...

6 days ago | 1

| accepted

Answered
Compare two strings from unequal length cell array and assign value
load('EXAMPLE.mat') [~,idx] = ismember(shortStranglePositions(:,6),callSymList(:,1)); shortStranglePositions(:,8) = callSy...

6 days ago | 0

| accepted

Answered
How can I change the color of the slices in my pie chart?
TT = 10; RT = 25; TN = 2; RN = 3; R = [RT , RN]; T = [TT , TN]; subplot(2,2,1) R_Pie = pie(R) Notice the elements of R_P...

6 days ago | 0

| accepted

Answered
add column in table
G = struct('ones',{1 1 1 1},'twos',{2 2 2 2}); % for example T= struct2table(G); c=1:height(T); % use height c=c'; T.new_c...

7 days ago | 0

| accepted

Answered
Replace matrix elements with zero apart from specific vectors
N1 = [2 3 5]; N2 = [7 11 13]; N3 = [17 19 23 29]; x = [0 2 3 5; 7 11 13 6; 4 5 6 7; 17 19 23 29] Rather than replacing unw...

7 days ago | 1

| accepted

Answered
need longer items in listbox names to display in a label
See the attached m-file for a simple example of how to do this.

7 days ago | 1

| accepted

Answered
Creating subplots based on a cell array
cell1 = {'AA' 'AA' 'BC' 'BC' 'BC' 'DD' 'DD'; 1 2 3 4 5 6 7; 7 6 5 4 3 2 1; 5 9 8 7 6 5 4}; cell2 = {'AA' 'AA' 'BC' 'BC' 'BC' 'D...

7 days ago | 1

| accepted

Answered
Error with uigetfile in App Designer when changing directories
Use the full path, not just the file name: comp_fn = readtable(fullfile(path,file));

7 days ago | 1

| accepted

Answered
Hello, I have a table contains the calendar day of the year and 24-hour frequency. How to get daily max, min, and average temperature from the table?
Here's one approach: % a table similar to yours, with only a few days, and only the relevant columns: t = table(repelem({'2005...

7 days ago | 0

| accepted

Answered
index exceed matrix elements
Replace this: L=length(data); with this: L=size(data,1); length(data) gives the size of the longest dimension of data, which...

7 days ago | 0

Answered
How can I index through logicals?
Construct table T: A = randi([0, 1], 5, 5); vert = reshape(A(:,1:3),[],1); Types = {'A', 'B', 'C', 'D', 'A', 'B', 'C', 'D', '...

8 days ago | 0

| accepted

Load more