답변 있음
Is there an 'Is___' Function that Checks if a Value is a [ ]?
<https://www.mathworks.com/help/matlab/ref/double.isempty.html isempty>

2년 초과 전 | 1

| 수락됨

답변 있음
static text did not show data
set(handles.fitting1,'string',num2str(a))

2년 초과 전 | 0

답변 있음
Legend ommit first plot title in multiple plots
First, reproducing the problem using random data: figure('Position',[1 1 600 300],'Units','pixels') hold on for i=1:5 x ...

2년 초과 전 | 0

| 수락됨

답변 있음
How do I use texture map on a patch object ?
No.

2년 초과 전 | 0

| 수락됨

답변 있음
Evaluating a complex equation
Y(n)=(tau/T).*(1+m*sin(2*pi*fm*t))+(2/n*pi).*sin(n*2*pi*fs).*[tau/2+(m*tau/2).*sin(2*pi*fm*t)].*cos(n*2*pi*fs*t); The left side...

2년 초과 전 | 0

답변 있음
How can I add DropDown Menus in multiple Cells of a particular Column in a UITable in App Designer?
Yes, you can set the ColumnFormat of that column to a cell array containing the dropdown items. The same items will appear in al...

2년 초과 전 | 1

| 수락됨

답변 있음
Is there a way to use a for loop to loop through structure fields?
mystruct.field1 = A % A, B, C are M x N x M x N arrays mystruct.field2 = B mystruct.field3 = C fieldvec = fieldnames(mystr...

2년 초과 전 | 0

답변 있음
I want to represent the temperature variation at specific points of the equatorial atlantic ocean
unzip example.zip ncfile = ('example.nc'); %loads temperature file ncdisp(ncfile) %info about ncfile ...

2년 초과 전 | 0

| 수락됨

답변 있음
How to add space between group of box and whisker bars using boxchart?
First, I make table variables like yours: d = {'R';'L'}; s = {'JD';'MM';'SH';'YL'}; c = {'B';'G';'R'}; Npts = 1000; Color...

2년 초과 전 | 0

| 수락됨

답변 있음
Pcolor Map showing up blank?
Use pcolorm %create data lat=[-90:0.25:90]; lon=[0:0.25:359.75]; smean=rand(1440,721); figure(121) worldmap([-90 90], [0 ...

2년 초과 전 | 0

답변 있음
combine data into hourly-based data
load data.mat First, your approach, modified: for i=1:24 id=find(data(:,2)>=i-1 & data(:,2)<i); m1(i)= median(data(i...

2년 초과 전 | 1

| 수락됨

답변 있음
error in matlab code : Index in position 1 exceeds array bounds. Index must not exceed 256. please help
You define chopped based on the data from the first file (datax{1,1}) only: chopped = (find(datax{1,1}(:,1)>200 & datax{1,1}(:,...

2년 초과 전 | 0

답변 있음
Stacked bar graph with negative BaseValue but "positive" height
The BaseValue is not necessarily the bottom of the bar; for bars representing negative value, the BaseValue is the top of the ba...

2년 초과 전 | 0

| 수락됨

답변 있음
for loop for generate overlay bar graphs
Here's one way, using patches instead of barh: load matrix.mat [data,idx] = sort(matrix(:,2:end),2,'descend'); [n,m] = size...

2년 초과 전 | 0

| 수락됨

답변 있음
Look up a value in a Table based a specified Row and Column
Table = readtable('FluxDataInterpolated.xlsx'); inclination = Table{1,2:end}; altitude = Table{2:end,1}; xvalue = 10; yvalue...

2년 초과 전 | 1

| 수락됨

답변 있음
I'm not sure which 3d plotting function would allow me plot elevation data as a function of GPS coordinates
Something like this might work. It's a surface. x = [0 1 2.5 2 3 4 3 4 4 5 5]; y = [0 1.5 2.5 4 5 5 6 7 6 6 7]; z = [0 1 2 3 ...

2년 초과 전 | 0

답변 있음
Why the contours does not appear in the empty region?
I assume the empty region you mean is the roughly square region with corners (0,0) and (-1,1). openfig('untitled.fig'); That r...

2년 초과 전 | 1

| 수락됨

답변 있음
Is there a MATLAB official way to increase/decrease line length/icon size in legends?
I don't know if there's an official way, given that the outputs from legend() beyond the first one are not mentioned in the offi...

2년 초과 전 | 0

| 수락됨

답변 있음
How do I truncate a table based on a data window I'd like to use?
% I construct a table similar to yours: TimeReceived = datetime(2023,6,26,0,0,(0:60*60*24-1).',2.6,'Format','dd-MMM-yyyy HH:mm:...

2년 초과 전 | 0

| 수락됨

답변 있음
Function working with helping function
This line storm_tracks = struct('history', [], 'current', []) makes storm_tracks a scalar struct numel(storm_tracks) % storm_...

2년 초과 전 | 1

| 수락됨

답변 있음
Side by side boxplots
% some random data x = rand(35,1); y = 2*rand(35,1)-1; % make a boxplot for x: boxplot(x) % make a boxplot for y, and spe...

2년 초과 전 | 0

| 수락됨

답변 있음
Why do I get NaN error for rho(i,n+1) and v(i,n+1) ?
You can put the following immediately after the line where rho(i,n+1) is calculated: if isnan(rho(i,n+1)) keyboard end T...

2년 초과 전 | 1

답변 있음
Log scale differs between tiledlayout plots
It may appear that plots C and D are not log y-axis, but that's only because MATLAB doesn't draw the small ticks under certain c...

2년 초과 전 | 1

| 수락됨

답변 있음
How do I move from one figure to the other in a GUI using GUIDE (that is, from Figure1 to Figure2 and back to Figure1)?
Where hFig1 is the handle to your Figure1 and hFig2 is the handle to your Figure2 figure(hFig1) % make Figure1 current figur...

2년 초과 전 | 0

답변 있음
Change colorbar axis values
You need to scale the contour color data from (0,360) to (0,2*pi), i.e., convert from degrees to radians. First, I make a conto...

2년 초과 전 | 0

답변 있음
Too many input arguments
According to section 2.2 (page 7) of the attached pdf document, aresparams should be called like: trainParams = aresparams(maxF...

2년 초과 전 | 0

답변 있음
Removing Partially Identical Rows from Array sets
Using Walter's code from his answer to your other question to read and interpret the file: S = readlines('test.txt'); S(strlen...

2년 초과 전 | 1

| 수락됨

답변 있음
I want to plot an exponential function but I can't code it because I'm new at matlab. Can you help?
f = @(x) exp(-0.106618903324 * x) - (591.108/5064.468) ; fplot(f)

2년 초과 전 | 0

답변 있음
how to determine the difference in the price scale
dt = Ax_Eq.YTick(2) - Ax_Eq.YTick(1);

2년 초과 전 | 1

| 수락됨

답변 있음
Use anonymous function to convert value before scatter plot
Yes, you can call scatter and use the fourth input, which is colors. It is not necessary to use anonymous functions for this, b...

거의 3년 전 | 0

| 수락됨

더 보기