Réponse apportée
Adding labels to fsurf contour lines
You can add text by entering the following: text(0,30,160,'Text Label','Fontsize',12) where 0, 30, and 160 are the x, y, and...

plus de 4 ans il y a | 0

Réponse apportée
How to assign xlabel,ylabel from my selected popup menu list?
If App Designer: value = app.DropDown.Value; value2 = app.DropDown2.Value; value2 = app.DropDown2.Value; if value == 'Opti...

plus de 4 ans il y a | 0

Réponse apportée
How to find the intersection of a fitting line with a logarithmic y-axis?
A= [10 40 60 80]; B = [5 6 7 8]; scatter(B,A,20,'filled') set(gca,'YScale','log') % Polyfit p = polyfit(B,A,2);% 2nd or...

plus de 4 ans il y a | 0

Réponse apportée
how to find peaks for 100%,75%,50%,25% of the max peak
I'm not entirely sure what peaks you are trying to identify. Below are techniques you can use. You can add labels to your pea...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
How do I obtain a 2D or 3D representation of a georeferenced raster?
You can use the surf function. Below are links to some examples: https://www.mathworks.com/matlabcentral/answers/598591-how-to-...

plus de 4 ans il y a | 1

| A accepté

Réponse apportée
How to plot entire row of numerical matrix from corresponding logical array?
Drill = [ 0.2324 0.0010 -0.2805 0.2324 0.0005 -0.2805 0.2322 0 -0.2800 0.2324 0 -0....

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
How to get the smallest value in submatrices
cellfun(@min,B,'UniformOutput',false) %or cellfun(@min,cellfun(@min,B,'UniformOutput',false),'UniformOutput',f...

plus de 4 ans il y a | 0

Réponse apportée
How to plot coordinate data to appear solid with lighting effect?
There may be a better way doing it. Here is my attempt: x1 = 0; x2 = 0; y1 = -.8; % value based on angle of 25 degrees y2 = ...

plus de 4 ans il y a | 0

Réponse apportée
How do I display the workspace variable file name via MATLAB script?
"And yes, each .mat file in the loop would save the matrix under the variable name "IntensityImagedataCh1". Would that impact ...

plus de 4 ans il y a | 1

| A accepté

Réponse apportée
Find corresponding values in different arrays
To be clear, you want to replace the sixth row of read{1,2} with the first row of T? If so, here it is for the specific examp...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
Mean and median at each interval
Data = importfile('Data.xls') % Histogram figure histogram(Data.Temp,[floor(min(Data.Temp)):1:ceil(max(Data.Temp))]); xlab...

plus de 4 ans il y a | 0

Réponse apportée
Bubbleplot in multiple dimensions
Have you looked into using bubblechart3? https://www.mathworks.com/help/matlab/ref/bubblechart3.html

plus de 4 ans il y a | 0

Réponse apportée
How to activate bubble chart
bubblechart was introduced in R2020b. What version of MATLAB do you have? https://www.mathworks.com/help/matlab/ref/bubblecha...

plus de 4 ans il y a | 0

Réponse apportée
Plot and color curves depending on the condition
I am unsure what you mean by "he sum of 3d row as y-axis(2.4443, 2.4443, 2.4443 in the example)." For now I am plotting the 5th...

plus de 4 ans il y a | 1

| A accepté

Réponse apportée
For loop including zeros in beggining
You don't need to create a for loop. You can simply do this: newY = y(y~=0); newX = x(y~=0);

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
How would I add a log scale (i.e 10^-1) as an x axis label to this polar plot?
h = gca; h.RAxis.Scale = 'log' "The coordinate system or ruler class does not support log axis scale." I found a workaround...

plus de 4 ans il y a | 0

Réponse apportée
file or directory ~ does not exist?
I believe the dataset needs to be entered as 'subject01.ds'?

plus de 4 ans il y a | 0

Réponse apportée
How can I plot a histogram for each of the multiple .mat files located in a folder outside of MATLAB?
Here is one method you can use: directory = '/Users/NAME/Desktop/selectedmatricies/'; %Alternatively, could use: directory = ui...

plus de 4 ans il y a | 2

| A accepté

Réponse apportée
Hey all newbie to matlab, was wondering what I can do to fix the "for loop" code I have below, I am getting the "array indices must be positive integers." Thanks in advance!
clear; counter = 0; y=[]; for t = -15:0.2:15; y = [y; counter]; counter = ((t^4)-(3*t^2)+(2*t)-1); end The indi...

plus de 4 ans il y a | 0

Réponse apportée
Setting focus in AppDesigner
I found this question here: https://www.mathworks.com/matlabcentral/answers/353504-give-focus-to-an-edit-field

plus de 4 ans il y a | 0

Réponse apportée
How can I create a scatterplot and map the outputs to a logarithmic colorscale?
You can change the colorbar's scale to logarithmic with the following command: set(gca,'ColorScale','log') Here is it altoge...

plus de 4 ans il y a | 1

| A accepté

Réponse apportée
Reactivate the app/gui after running a call back code
Please see solution here: https://www.mathworks.com/matlabcentral/answers/296305-appdesigner-window-ends-up-in-background-after-...

plus de 4 ans il y a | 0

Réponse apportée
Using uigetfile to select file in App Designer is causing the matlab script to open after file is selected
You can try this: % Button pushed function: BrowseFileNameButton function BrowseFileNameButtonPushed(app, event) [fileNam...

plus de 4 ans il y a | 2

| A accepté

Réponse apportée
need help to find all results in one table , or any possible form
Is this what you were trying to do? R1=1:1:10; R2=1:1:10; a=[22 17 20 7 33 19 8 30 4 9 36 14 12 44 40 ]'; b=[25 18 44 2...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
How do you extract index values from the data tips function into a variable or an array?
You can access it as such: h = gca; %gca stands for get current axes for i = 1:NumberofDatatips h.Children.Children(i).Cont...

plus de 4 ans il y a | 0

Réponse apportée
deleting unneeded columns from tables after using them
1. t.YEAR = []; t.MONTH = []; t.DAY = []; t.HOUR = []; t.MIN = []; 2. struct.date = t.Date(1); t.Date = []; struct.tab...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
Remove dates from plot
An easy way to resolve this could be this: plot(X(1:1552),Y(1:1552),'k') hold on plot(X(1575:end),Y(1575:end),'k') Edit: I j...

plus de 4 ans il y a | 0

Réponse apportée
How to reduce space between axis labels and axis ticks?
x=1:54; y1=cos(x); y2=sin(x); plot(x,y1,'k-+',x,y2,'b-*') xlim([1 54]) xlabel('Sample 1') ylabel('Sample 2') Get the axes...

plus de 4 ans il y a | 3

A résolu


The Piggy Bank Problem
Given a cylindrical piggy bank with radius g and height y, return the bank's volume. [ g is first input argument.] Bonus though...

plus de 4 ans il y a

A résolu


Best Square-Shaped Grid for Subplot
If you have x number of plots, find the optimum 'm' number of rows and 'n' number of columns for subplotting where the overall f...

plus de 4 ans il y a

Charger plus