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

casi 3 años hace | 1

| aceptada

Respondida
static text did not show data
set(handles.fitting1,'string',num2str(a))

casi 3 años hace | 0

Respondida
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 ...

casi 3 años hace | 0

| aceptada

Respondida
How do I use texture map on a patch object ?
No.

casi 3 años hace | 0

| aceptada

Respondida
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...

casi 3 años hace | 0

Respondida
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...

casi 3 años hace | 1

| aceptada

Respondida
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...

casi 3 años hace | 0

Respondida
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 ...

casi 3 años hace | 0

| aceptada

Respondida
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...

casi 3 años hace | 0

| aceptada

Respondida
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 ...

casi 3 años hace | 0

Respondida
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...

casi 3 años hace | 1

| aceptada

Respondida
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}(:,...

casi 3 años hace | 0

Respondida
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...

casi 3 años hace | 0

| aceptada

Respondida
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...

casi 3 años hace | 0

| aceptada

Respondida
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...

casi 3 años hace | 1

| aceptada

Respondida
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 ...

casi 3 años hace | 0

Respondida
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...

casi 3 años hace | 1

| aceptada

Respondida
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...

casi 3 años hace | 0

| aceptada

Respondida
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:...

casi 3 años hace | 0

| aceptada

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

casi 3 años hace | 1

| aceptada

Respondida
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...

casi 3 años hace | 0

| aceptada

Respondida
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...

casi 3 años hace | 1

Respondida
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...

casi 3 años hace | 1

| aceptada

Respondida
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...

casi 3 años hace | 0

Respondida
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...

casi 3 años hace | 0

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

casi 3 años hace | 0

Respondida
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...

casi 3 años hace | 1

| aceptada

Respondida
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)

casi 3 años hace | 0

Respondida
how to determine the difference in the price scale
dt = Ax_Eq.YTick(2) - Ax_Eq.YTick(1);

casi 3 años hace | 1

| aceptada

Respondida
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...

casi 3 años hace | 0

| aceptada

Cargar más