답변 있음
Generating a legend for one function that is associated with two variables
The call to sprintf contains one format specification and two values. That applies the formatSpec twice. demo: sprintf('Dem...

5년 초과 전 | 0

답변 있음
Labeling axes in app design
Setting axis labels for uifigures (ie, in app designer) is the same process as setting axis labels in regular figures. The only...

5년 초과 전 | 0

| 수락됨

답변 있음
App designer first application issue
Since the figure visibility cannot be set from Design View within AppDesigner, there's no way to start the app with an invisible...

5년 초과 전 | 1

답변 있음
How do I change position of titles and subtitles of subplots?
Starting in r2020b you can set the TitleHorizontalAlignment property of the axes to specify the justification (left|right|center...

5년 초과 전 | 1

| 수락됨

답변 있음
sym(1/3) bug?
Check your symbolic preferences. sympref If the FloatingPointOutput if true change it to false sympref('FloatingPointOutput'...

5년 초과 전 | 3

| 수락됨

답변 있음
Why am I receiving the error message below?
After some brief digging, it seems like you're trying to use the stlread on the file exhchange rather than Matlab's stlread whic...

5년 초과 전 | 0

| 수락됨

답변 있음
Declare a table where each column variable is an array of numbers
varNames = {'10:00','10:15','10:30','10:45','11:00',}; varTypes = {'double','double','double','double','double'}; sz = [5,5]...

5년 초과 전 | 0

| 수락됨

답변 있음
How to restrict input
> I want to make sure you that my input is exactly a 5 digit number, and it cannot be alphabets Assuming "5 digits" means an in...

5년 초과 전 | 0

| 수락됨

답변 있음
How do I find the rows in one table that have strings that match strings in another table?
Use this line to find the rows in NE.study_id that are in DS.study_id. ismember(NE.study_id, DS.study_id) If you want to ...

5년 초과 전 | 0

| 수락됨

답변 있음
Finding correlation with inputs and output variables
It sounds like you want to plot the correlation between all pairs of variables. If you have the Econometrics Toolbox, you can ...

5년 초과 전 | 0

| 수락됨

답변 있음
Creating equally spaced x axis on plot function
My guess set(gca,'xticklabel',x) should be set(gca,'xtick',x) If not, we need more info.

5년 초과 전 | 0

| 수락됨

답변 있음
How to build random number every loop different?
It looks like you want random positive integers without repetition based on your use of randi. p = randperm(n,k) where n is the...

5년 초과 전 | 0

답변 있음
How to make a 1x0 struct array
How to make a 1x0 struct array S = struct('a',cell(1,0),'b',cell(1,0), 'c', cell(1,0)) Addendum: why does this create a 1x0 ...

5년 초과 전 | 2

| 수락됨

답변 있음
Create and save animated line from x and y values that correspond to time data
Here's a review of 3 animation techniques. If you get stuck, show us what you've got and describe the problem so we can focus ...

5년 초과 전 | 0

답변 있음
Scatter Plot with multiple 'levels' on the Xaxis
I see two options. 1. Since the "test" and country labels are vertically stacked, you could set multiple rows of x-tick labels...

5년 초과 전 | 0

답변 있음
App desiner GUI crashes when use scatter3
I've reproduced the problem using Matlab Online with the code below (commented-out to discourage people from trying it). Matlab...

5년 초과 전 | 0

답변 있음
Disable pointer event in App Designer
To temporarily disable interaction across the entire app, use uiprogressdlg. It sounds like this is too restrictive for your n...

5년 초과 전 | 0

| 수락됨

답변 있음
Zoom in on two images simultaneously displayed using imshowpair
> If I zoom into an area of imageA in the figure ouput, it zooms solely into this area, treating the two images as one image Th...

5년 초과 전 | 2

| 수락됨

답변 있음
Slider which controls a bar plot
Here's a demo. The key is to set bh (the bar handle) and initialValues (the initial y-values of the bars) prior to setting the ...

5년 초과 전 | 1

| 수락됨

답변 있음
Create a numeric variable DATE+HOUR
There's rarely a good reason to use datenum rather than datetime values. See Why are datetime arrays better than datenum? % Co...

5년 초과 전 | 0

| 수락됨

답변 있음
How can I export the below table?
Use readtable to read in the data as table T. Use the conversion below. Write to csv using writetable T = array2table(reshape...

5년 초과 전 | 0

답변 있음
Finding groups based on matching multiple values in a column
I recommend adding the region column to your tables. I doubt it will have an impact on computation time relative to using a sep...

5년 초과 전 | 0

| 수락됨

답변 있음
Plot impedance chart into an axes
I have a feeling you're working with a uifgure instead of the regular figures. HandleVisibility of uifigures needs to be on t...

5년 초과 전 | 0

| 수락됨

답변 있음
Create a new table based on variables of other tables (WITH DIFFERENT LENGTHS)
T = zeros(5, 14000); % T -> New table No, that's not a table. That's a matrix of 0s. >I want to insert in another table t...

5년 초과 전 | 0

| 수락됨

답변 있음
Replacing values in a matrix
Use basic Matlab indexing. M(M>20 & M<50) = -3;

5년 초과 전 | 1

| 수락됨

답변 있음
Increasing the X axis precision while using times
Give this a shot. I've added/changed 3 lines (see comments) and removed two lines. Avoid using datenum and use datetime inst...

5년 초과 전 | 0

| 수락됨

답변 있음
How to start a time step function? SWITCH expression must be a scalar or a character vector.
Take a moment to read the switch/case documentation to become familiar with what that function does. The acceleration variable...

5년 초과 전 | 0

답변 있음
Find a string cell into a variable of a table
A(1,1) and B(:,1) return tables but strcmp is designed to accept character vector | character array | cell array of character ve...

5년 초과 전 | 1

| 수락됨

답변 있음
Add titles over rows in subplots
Create one centered title per row of subplots Three methods are included Subplot with an odd number of columns Subplot with ...

5년 초과 전 | 2

| 수락됨

답변 있음
Searching through files for missing data
>Does anyone know how to do this? Lots of people know how to do this and we're here to help but few people will devote a portio...

5년 초과 전 | 1

더 보기