Community Profile

photo

Voss


Last seen: Today Active since 2013

Followers: 2   Following: 0

Message

Statistics

All
  • MATLAB Central Treasure Hunt Finisher
  • Treasure Hunt Participant
  • Most Accepted 2023
  • Master
  • Commenter
  • Leader
  • 24 Month Streak
  • Thankful Level 5
  • Most Accepted 2022
  • Revival Level 4
  • Knowledgeable Level 5
  • Promoter

View badges

Feeds

View by

Answered
split up a matrix at discontinuities
A = [0 34.4; 60 33.3; 120 32.2; 180 31.1; 240 30; 300 28.9; 360 27.9; 420 26.8; 480 25.7; 540 24.7; 600 23.6; 660 22.6; 720 21.6...

ungefär 11 timmar ago | 1

| accepted

Answered
Function with for loop doesn't always work
fclose the file, and you'll see it's not empty.

en dag ago | 0

Answered
Choose a random button from a set of 9 arranged in a 3x3?
Use this syntax: button_name = sprintf('Button_%d',n); app.(button_name).Text = num2str(Answer); Reference: https://www.mathw...

en dag ago | 0

Answered
How to "shake loose" an auto scaling graph when it doesn't autoscale?
Where ax is your uiaxes component: xlim(ax,'auto') ylim(ax,'auto') or, equivalently: ax.XLimMode = 'auto'; ax...

2 dagar ago | 0

| accepted

Answered
Output problem for If - statement in For - Loop
The difficulty, as you've found, is that to determine that the user's input does not match any of the answers, you have to check...

3 dagar ago | 0

| accepted

Answered
How to get the y-axis in the foreground while having the grids in the background?
"I try to get the grids in the background behind jbfill and the yaxis/ yticks above the jbfill" That's no going to work; the g...

3 dagar ago | 0

| accepted

Answered
pinv operation in matlab
X = rand(32,32,10); XI = pageinv(X); size(XI)

3 dagar ago | 1

| accepted

Answered
Unable to perform assignment because the left and right sides have a different number of elements.
The right side of this assignment is of size 100x1 T_update(2) = T(2) + (q_evap / (rho_water * Cp_water)); because q_evap is 1...

3 dagar ago | 0

| accepted

Answered
3d matrix initialization and find the specific values after the for loops
You give A three columns when you do this: A=[m,n,p]; % size 1x3 Perhaps you meant: A=zeros([m,n,p]); But that w...

3 dagar ago | 0

| accepted

Answered
Readtable is not reading all of my Data
filename = fullfile('.', sprintf('SmartChipData_A%06i%s_Results.xlsx', 143881, 'B')); Specifying ExpectedNumVariables in detect...

3 dagar ago | 0

| accepted

Answered
Unable to perform assignment because the size of the left side is 1-by-1 and the size of the right side is 1-by-15. - can't find what the problem is
Assuming that b, m1, m2, n1, and n2 are scalars, the code runs ok. (Also assuming that the integers stored in the x, y, z variab...

3 dagar ago | 0

Answered
Having issues writing matrix to a binary file.
I suspect there's something wrong with how you are reading the file. Here's an example of writing (using your code) and then re...

3 dagar ago | 1

Answered
copy subplots within same figure
To copy the legends, copy each with its associated axes (vector of objects to copyobj). To fix the overlapping, set the OuterPo...

3 dagar ago | 1

Answered
uigetfile Multiselect option not working for single file select
You don't need separate scipts/functions. Since files is a cell array when multiple files were selected, and files is a charact...

3 dagar ago | 0

| accepted

Answered
How to fix this code trying to create 3 seperate plots from a 3D plots exported to png.
The error message Index exceeds the number of array elements (1). on the line copyobj(get(axesHandles(2), 'Children'), ax2); ...

4 dagar ago | 1

| accepted

Answered
Why am I receiving this error?
curvatures is of size 2-by-3: curvatures = [0.05, 0.020, 0.0250; 0, 0.010, 0.0125] % Curvatures (kappa_x, kappa_y, kappa_xy) l...

4 dagar ago | 0

Answered
I need to make a function for compound interest using for
money=1000; x=zeros(1,8); % x is the balance each year for 8 years x(1) = money; % initially (1st year) x is 1000 for i=2:num...

4 dagar ago | 0

Answered
isfield on an app-designer app
Use isprop instead of isfield for checking for the existence of object (including app) properties.

4 dagar ago | 0

| accepted

Answered
How to make correct Regex?
Use 'tokens' instead of 'match'.

4 dagar ago | 0

Answered
How to cycle through elements in an array in Matlab
To account for indexing in MATLAB starting with 1, subtract 1 from the iteration number, perform mod(), then add 1 to the result...

4 dagar ago | 1

Answered
Input command not showing the prompt until answer is put in the command window
The clc in your script is interfering with displaying the first input prompt at the right time. You can get around the problem b...

4 dagar ago | 0

Answered
How to put textbox in same position of the plots
You asked this question a month ago, and I answered it at that time: <https://www.mathworks.com/matlabcentral/answers/2096466...

4 dagar ago | 0

| accepted

Answered
Error message when trying to plot 3D surface plot with colour bar
"'Concentration at Final Time Step'" would seem to indicate that you want to plot a surface from the last page of the 3D array C...

5 dagar ago | 0

| accepted

Answered
Is there a way to make msgbox copy-paste?
I don't think there's a way to do that using msgbox, but you can copy text from an 'edit'-style uicontrol, such as is created by...

5 dagar ago | 1

Answered
Conditional retime method in a timetable
Maybe something like this: S = load('timetable.mat'); T2 = S.T2; dt = 1; t = seconds(T2.Time); N = round((t(end)-t(1))/...

5 dagar ago | 1

| accepted

Answered
Only change ytick fontsize
ax = gca(); ax.YAxis.FontSize = 20;

6 dagar ago | 1

| accepted

Answered
How to have individual numbers combine into a larger number
One option is to use the 's' second input to input, which signifies that the user input is returned as a character vector. Then ...

6 dagar ago | 0

Answered
Transfer data between App Designer and Matlab (m file)
Scripts run in the workspace they are called from; that may be the base workspace, but in this case it's the workspace of the fu...

6 dagar ago | 1

| accepted

Answered
Unable to perform assignment because the left and right sides have a different number of elements(funtion in a while loop).
I don't have the function spere_derive_2d, so I can't run the code, but I guess that spere_derive_2d returns at least 4 outputs,...

7 dagar ago | 1

| accepted

Answered
Fitting data to a new set of frequency
You can use interp1. Example follows: % some made-up data defined on those frequency vectors f1 = 1:0.33:34; f2 = 2:0.5:21; ...

7 dagar ago | 0

| accepted

Load more