Community Profile

photo

Voss


Last seen: Today Aktiv seit 2013

Statistiken

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

Abzeichen anzeigen

Content Feed

Anzeigen nach

Beantwortet
pérdida de colormap despues de activar y desactivar eje Y secundario en appdesigner
From the "Tips" section of the yyaxis documentation: "To clear the active side, use cla. To clear both sides of the axes and re...

etwa 5 Stunden vor | 0

Beantwortet
How to Add Border to Single Color Region in pcolor Plot
load TestData [m,n] = size(medianVarianceAll2); [X,Y] = meshgrid(1:m,1:n); figure h = pcolor(X',Y',medianVarianceAll2); c...

etwa 6 Stunden vor | 0

Beantwortet
Matlab error how to fix?
"creating a m by 2 matrix where the first column is a datetime and second column is numeric" You cannot mix data types in a mat...

etwa 8 Stunden vor | 0

Beantwortet
Non-numerical data is still being loaded onto table. Need advice.
Note that the table returned by readtable is stored in app.dataTable before it's checked for non-numeric variables, so other par...

etwa 9 Stunden vor | 0

| akzeptiert

Beantwortet
Solving an array without for loops
permute might be useful. Example: Array_1 = rand(3,10); % size of Array_1: [3, 10] Array_2 = rand(3,15); % size of Array_2: [3...

etwa 9 Stunden vor | 0

Beantwortet
Unable to display uicontrol within a given panel?
"checkbox1 = uicontrol(ax2, ...)" won't work because an axes cannot be the parent of a uicontrol, as the error message said. "...

etwa 9 Stunden vor | 0

Beantwortet
Fill area between two lines
It looks like xxO is a row vector and envelopeminO and envelopesupO are column vectors (any other combination would work properl...

etwa 11 Stunden vor | 2

Beantwortet
Circular shifting or rotating structure of array elements
A 1x3 array of structures: S = struct('x',{4 20 5},'y',{8 24 15}) S.x S.y 1. Shift the third element to first one using circ...

etwa 12 Stunden vor | 0

Beantwortet
Circular shifting or rotating structure of array elements
A structure of arrays: S = struct('x',[4;20;5],'y',[8;24;15]) S.x,S.y 1. Shift the third row to first one using circshift: S...

etwa 12 Stunden vor | 0

Beantwortet
How to use for loop and get the result for each index varian?
"after running, it only gives the last model's result" Of course, because Optimizevalue is overwritten on each loop iteration. ...

etwa 13 Stunden vor | 0

Beantwortet
Multiple Uses of UIMENU
"there seems to be a lot of duplicity. Is there a more elegant way to ahcieve this" Multiple components (e.g., uitables) can ...

etwa 13 Stunden vor | 0

| akzeptiert

Beantwortet
How to adjust color of each bar in a grouped bar plot?
% data = [F_CRPS_ip A_CRPS_ip; F_CRPS_is A_CRPS_is; F_CRPS_rho A_CRPS_rho]; data = rand(3,2); y = data; x = ["I_P" "I_S" "...

ein Tag vor | 0

| akzeptiert

Beantwortet
Program not generating 0 as expected to turn variable cell to double
newZ1 = Z2*ceil(Z1/Z2); That makes each element of newZ1 the lowest multiple of Z2 greater than or equal to the corresponding e...

ein Tag vor | 0

| akzeptiert

Beantwortet
It keeps giving me an error on my xlim and the graph that it gives me isn't complete
xlim should be specified as a 1x2 numeric vector of increasing values, e.g., xlim([0.3 1]); not as a character vector (with s...

2 Tage vor | 1

| akzeptiert

Beantwortet
How can I modify the following code to send data row by row instead of column by column using UDP?
"I have data with five columns" I assume that's the variable data in your code. You can write data by row the exact way you ar...

2 Tage vor | 0

Beantwortet
How to send Table using UDP in MATLAB
According to <https://www.mathworks.com/help/instrument/udpport.write.html the documentation>, the "data" input is: "Vector...

2 Tage vor | 0

Beantwortet
Importing data to 3D array in matlab
Since each file has a different number of x,y, it'll be more convenient to use a cell array: Data = cell(1,nfiles); for ...

2 Tage vor | 0

| akzeptiert

Beantwortet
How to save a text file with number and text information?
Put the filenames in cell arrays. Example: lat1=1.2; lat2=3.2; long1=-44; long2=-34; grd='map.grd'; fault='fault.txt'; % fi...

3 Tage vor | 0

| akzeptiert

Beantwortet
quiver plot on an image
"Is there any way to superimpose quiver plot on imshow function?" Yes. % read an image: img = imread('peppers.png'); % imsho...

3 Tage vor | 0

| akzeptiert

Beantwortet
How to display rectangle ROI that was loaded from a file?
You can set the saved rectangles' parent to be a different/new axes. Example: % plot some rectangles: xlim([0 1]) ylim([0 1]...

3 Tage vor | 0

| akzeptiert

Beantwortet
How to get a bar plot with unequal bin intervals?
bin_edges = [0 5 20 100]; % include the last edge (100) bar_heights = [20 10 30]; bar(bin_edges,[bar_heights(:); 0],'histc') %...

3 Tage vor | 0

| akzeptiert

Beantwortet
How to change colors in my legend that is classified into three intervals?
Try storing the line handles returned from the m_plot calls, and then use those line handles in the legend call. That fixed the ...

3 Tage vor | 0

Beantwortet
add element in table
% load stuff from the mat files: d1 = load('matlab_d1.mat','d1').d1; ff = load('matlab_ff.mat','ff').ff; d1 ff Name in ta...

4 Tage vor | 0

| akzeptiert

Beantwortet
Assemble Global Stiffness Matrix
%% INPUTs: A = 2300; % Cross-Sectional Area of member (in mm^2) E = 2*10^5; % Elastic Modulus (i...

4 Tage vor | 1

| akzeptiert

Beantwortet
unable to plot 2 graphs
Maybe something like this: %normal modes of string section 2.25 Stein/Wysession % clear; close all; clc L = 20; %string ...

4 Tage vor | 0

| akzeptiert

Beantwortet
My uitable cells do not hold text input?
OK, I see what the problem is now (you were right, it is a problem with the refreshColumnFormat function). This line in refresh...

4 Tage vor | 0

| akzeptiert

Beantwortet
Need help with Tooltip display?
Here is a script you can run, along with an xlsx file containing random colors and names. You can run it as-is, and you can als...

4 Tage vor | 0

| akzeptiert

Beantwortet
i need the code for the below graph.
I don't have the data, so I can't generate that exact plot, but here's a similar one: x = -25:245; y = (x+25).'.*[0.5 0.45]-75...

4 Tage vor | 0

Beantwortet
Is it possible to zip files one directory up with "zip"
Try this: zip('file1',fullfile(pwd(),'..',{'file2','file3'}))

5 Tage vor | 0

| akzeptiert

Beantwortet
How to stitch together subsets of data from acceleration time histories?
One thing you have to consider is what to do if a peak is within 2 seconds of another peak, so that the two peaks' 3-second-long...

5 Tage vor | 0

Mehr laden