A répondu

How do I add text detailing the bar's value to the top of each bar graph to 3 significant figures

Hello Archie, You can refer to this thread for more info. But something like this should do the trick. Another option would b...

How do I add text detailing the bar's value to the top of each bar graph to 3 significant figures

Hello Archie, You can refer to this thread for more info. But something like this should do the trick. Another option would b...

environ un an il y a | 0

A répondu

write a coordinate obtained by clicking on a graphic appdesigner

Hello Marina, Looks good to me except the last line, I would change it to: app.tiempo.Value = app.x; % CurrentPoint(1) is alre...

write a coordinate obtained by clicking on a graphic appdesigner

Hello Marina, Looks good to me except the last line, I would change it to: app.tiempo.Value = app.x; % CurrentPoint(1) is alre...

environ un an il y a | 0

A répondu

I would like to modidy the colors in this 2d plot, different from standard ones (e.g., 'b', 'k')

Hello, You could separate the plot and specify the colors individually. D95319=[217,83,25]/255; A2142=[162, 20, 47]/255; AC3...

I would like to modidy the colors in this 2d plot, different from standard ones (e.g., 'b', 'k')

Hello, You could separate the plot and specify the colors individually. D95319=[217,83,25]/255; A2142=[162, 20, 47]/255; AC3...

environ un an il y a | 0

| A accepté

A répondu

NEED HELP, Need to find the period for a signal

Hello Mohammad, You could try something like this: clear all ts=0.001; t=0:ts:0.6; y=5*sin(8*pi*t)+6*sin(16*pi*t); [p,pe...

NEED HELP, Need to find the period for a signal

Hello Mohammad, You could try something like this: clear all ts=0.001; t=0:ts:0.6; y=5*sin(8*pi*t)+6*sin(16*pi*t); [p,pe...

environ un an il y a | 0

A répondu

Bar graph - plot data

Hello Francesco, You can refer to this thread for more info, but this should do the trick close all data=[2,3;2,6;2,6;2,6];...

Bar graph - plot data

Hello Francesco, You can refer to this thread for more info, but this should do the trick close all data=[2,3;2,6;2,6;2,6];...

environ un an il y a | 0

| A accepté

A répondu

intersection from a plot and loop

Hello Alina, You can check the fzero function clear all; close all W_takeoff = 10000; W_landing=6000; S = 20; AR = 5; cd...

intersection from a plot and loop

Hello Alina, You can check the fzero function clear all; close all W_takeoff = 10000; W_landing=6000; S = 20; AR = 5; cd...

environ un an il y a | 0

A répondu

Calculate weekly mean from temperature data

Hello Giulia, You may try something like this. If you need more info on conditional statements, you can refer to this page td...

Calculate weekly mean from temperature data

Hello Giulia, You may try something like this. If you need more info on conditional statements, you can refer to this page td...

environ un an il y a | 1

| A accepté

A répondu

How to understand if a line cut a surface plot

If you have a plane parallel to XY reference frame (Z=a) , the line connecting the two points (p1 and p2) will cross the plane i...

How to understand if a line cut a surface plot

If you have a plane parallel to XY reference frame (Z=a) , the line connecting the two points (p1 and p2) will cross the plane i...

environ un an il y a | 0

A répondu

Non-pixelized image using imagesc (or alternatives)

Hello, I guess that what you want to do is interpolate the data into a larger image. You could take a look at imresize and adju...

Non-pixelized image using imagesc (or alternatives)

Hello, I guess that what you want to do is interpolate the data into a larger image. You could take a look at imresize and adju...

environ un an il y a | 0

| A accepté

A répondu

find the index number using bsxfun command

Hello, Yes, you can use the bsxfun command. C = bsxfun(@eq, B, A(:)); [~,id]=ind2sub(size(C),find(C(:)==1)) % id contain the...

find the index number using bsxfun command

Hello, Yes, you can use the bsxfun command. C = bsxfun(@eq, B, A(:)); [~,id]=ind2sub(size(C),find(C(:)==1)) % id contain the...

environ un an il y a | 0

A répondu

Legend for fill_between plot

Hello, Not sure how your fill_between function works, but you can use the patch build in function, refer to this thread or this...

Legend for fill_between plot

Hello, Not sure how your fill_between function works, but you can use the patch build in function, refer to this thread or this...

environ un an il y a | 1

A répondu

Sort and rearranged a 1D array to 3D matrix

Hello, You could add these lines to the end of your code [sx,sy,sz]=size(TEMP); A=reshape(sortedTEMP,[sx*sz,sy])'; for i=1...

Sort and rearranged a 1D array to 3D matrix

Hello, You could add these lines to the end of your code [sx,sy,sz]=size(TEMP); A=reshape(sortedTEMP,[sx*sz,sy])'; for i=1...

environ un an il y a | 0

A répondu

How to specify equal distance interval in matlab plots

Hello, You could try something like this: data = xlsread("hello.xlsx"); vel = data(:,1); Min = data(:,3); Mod = data(:,5); ...

How to specify equal distance interval in matlab plots

Hello, You could try something like this: data = xlsread("hello.xlsx"); vel = data(:,1); Min = data(:,3); Mod = data(:,5); ...

environ un an il y a | 0

| A accepté

A répondu

the maximum difference bewteen lines from a loop and plot

maxdiff=max(abs(p_takeoff-P_takeoff)); % Value of the maximum difference i=find(abs(p_takeoff-P_takeoff)==maxdiff); % Index at...

the maximum difference bewteen lines from a loop and plot

maxdiff=max(abs(p_takeoff-P_takeoff)); % Value of the maximum difference i=find(abs(p_takeoff-P_takeoff)==maxdiff); % Index at...

environ un an il y a | 1

A répondu

How to access the data in cell and struct?

Hello, To access the contents in a cell you shoould use curly braces {}. data=ref_files{idx,1}.asciiFile(:,1); % Data would ...

How to access the data in cell and struct?

Hello, To access the contents in a cell you shoould use curly braces {}. data=ref_files{idx,1}.asciiFile(:,1); % Data would ...

environ un an il y a | 0

| A accepté

A répondu

Looping through index number + 1

Not exactly sure what you are trying to do but, why do you want to loop through all 15 cells? isn't it enough to loop through 14...

Looping through index number + 1

Not exactly sure what you are trying to do but, why do you want to loop through all 15 cells? isn't it enough to loop through 14...

environ un an il y a | 0

A répondu

appdesigner: use a slider to play a video

Hello Marina, You could start by creating a startup Function where you create an array with all frames. Something like this: ...

appdesigner: use a slider to play a video

Hello Marina, You could start by creating a startup Function where you create an array with all frames. Something like this: ...

environ un an il y a | 0

| A accepté

A répondu

The graph basic fitting tool accepts a matrice but not the polyfit function... How to do the same thing in a script ?

Hello, Something like this might do the trick: close all for i=1:10; % Loop through your variables p=polyfit([1:10]',vcz(:,i...

The graph basic fitting tool accepts a matrice but not the polyfit function... How to do the same thing in a script ?

Hello, Something like this might do the trick: close all for i=1:10; % Loop through your variables p=polyfit([1:10]',vcz(:,i...

environ un an il y a | 0

A répondu

Please how can I calculate the values of this finite sum of numbers in fully sequential , I'm finding it difficult

Hello, You can try something like this: n=1000; %Specify your n SUM=zeros(n,1); for i=1:n; SUM(i)=1./i^4; end value=s...

Please how can I calculate the values of this finite sum of numbers in fully sequential , I'm finding it difficult

Hello, You can try something like this: n=1000; %Specify your n SUM=zeros(n,1); for i=1:n; SUM(i)=1./i^4; end value=s...

environ un an il y a | 0

A répondu

Plot complex signal with imaginary and complex

Hello Nirwana, You can take a look at this thread You could try something like this plot3(x,y,z) hold on plot3(x, 2*ones(si...

Plot complex signal with imaginary and complex

Hello Nirwana, You can take a look at this thread You could try something like this plot3(x,y,z) hold on plot3(x, 2*ones(si...

environ un an il y a | 0

A répondu

Splitting a database up

Hello Anna, You can generate a random number using the rand function n = floor(udix(1) + (udix(2)-1-udix(1)) .* rand(1,1)); %...

Splitting a database up

Hello Anna, You can generate a random number using the rand function n = floor(udix(1) + (udix(2)-1-udix(1)) .* rand(1,1)); %...

environ un an il y a | 0

A répondu

Create Number and excluding

Hello, Not sure why you would like to do this using a loop, but anyways: l=5:15; % Array containing the values from 5 to 15 ...

Create Number and excluding

Hello, Not sure why you would like to do this using a loop, but anyways: l=5:15; % Array containing the values from 5 to 15 ...

environ un an il y a | 0

| A accepté

A répondu

How to measure the average thickness at the center region of binary image

Hello Timilehin, You can refer to this thread for more info, but this should do the trick. lear all close all I=imread("ima...

How to measure the average thickness at the center region of binary image

Hello Timilehin, You can refer to this thread for more info, but this should do the trick. lear all close all I=imread("ima...

environ un an il y a | 0

| A accepté

A répondu

How to make a loop repeat itself when user typed the wrong letter?

Hello S C, You should use while instead of for loop. p='E:\...'; fprintf('Data to be analysed is located in: \n'); fprintf(...

How to make a loop repeat itself when user typed the wrong letter?

Hello S C, You should use while instead of for loop. p='E:\...'; fprintf('Data to be analysed is located in: \n'); fprintf(...

environ un an il y a | 0

| A accepté

A répondu

don't know how to write my for loop

Hello Kellie, Something like this should do the trick V=zeros(21,120); V(:,1)=A*V0; %This is your V1 for n = 1:119 V(:...

don't know how to write my for loop

Hello Kellie, Something like this should do the trick V=zeros(21,120); V(:,1)=A*V0; %This is your V1 for n = 1:119 V(:...

environ un an il y a | 1

A répondu

Count repetitions separately in an array

Hello Lea, Try something like this: % Where 1 would be the number you are looking and 2 the number of repeats sum(A==1)>2 % T...

Count repetitions separately in an array

Hello Lea, Try something like this: % Where 1 would be the number you are looking and 2 the number of repeats sum(A==1)>2 % T...

environ un an il y a | 0

A répondu

How to save a file by taking the folder path and filename as input from user in MATLAB app designer?

Hello, Check here [baseFileName, folder] = uiputfile('Specify a file'); fullFileName = fullfile(folder, baseFileName) save...

How to save a file by taking the folder path and filename as input from user in MATLAB app designer?

Hello, Check here [baseFileName, folder] = uiputfile('Specify a file'); fullFileName = fullfile(folder, baseFileName) save...

environ un an il y a | 0

| A accepté

A répondu

how to merge multiple files ?

Hello Lilya, I'm guessing the problem is your header.405 is not the first file listed in dinfo. What you could do i find the po...

how to merge multiple files ?

Hello Lilya, I'm guessing the problem is your header.405 is not the first file listed in dinfo. What you could do i find the po...

environ un an il y a | 0

| A accepté

A répondu

How to select specific figure and specific axes for plot?

Hello Heiko, You can take a look here. You could try something like this: % Let's say your figure has been saves as a .fig f...

How to select specific figure and specific axes for plot?

Hello Heiko, You can take a look here. You could try something like this: % Let's say your figure has been saves as a .fig f...

environ un an il y a | 0

A répondu

Average values with nan value

Not exacty sure what you mean by U1(t). I you want to calculate the mean (excluding NaNs) for each timestep for all i and a spec...

Average values with nan value

Not exacty sure what you mean by U1(t). I you want to calculate the mean (excluding NaNs) for each timestep for all i and a spec...

environ un an il y a | 0

| A accepté