Respondida
Can I use a list box to choose several alternatives from the listed ones?
You can use a uilistbox and select multiple items using the Multiselect fig = uifigure('Position',[100 100 350 275]); % Creat...

casi 2 años hace | 0

Respondida
Mapping a smaller matrix to a larger matrix
k = ones(4); kprime = zeros(8); krow = [7 8 1 2]; kcol = [7; 8; 1; 2]; kprime(krow,kcol) = k; Not sure where the k'(5,1) va...

casi 2 años hace | 1

| aceptada

Respondida
I would like to plot several histograms in 3D using Matlab like in the below figure. Does anyone have any suggestions?
Check out the solution in the link below. How to plot multidimensional array in one axes like sequence of images? - MATLAB Answ...

casi 2 años hace | 0

Respondida
How to plot a trajectory with varying colour?
I don't think there is a way to do this using just one plot. My quick solution would be to do something like this x = 0:0.05:2*...

casi 2 años hace | 1

Respondida
How do I launch the Radar Toolbox from within Matlab?
Are you trying to use the Radar Designer app? If so, just type this into your command window radarDesigner

casi 2 años hace | 1

Respondida
Is it possible to customize the components in App Designer using CSS?
It depends on what you need, but uihtml is a good start.

casi 2 años hace | 0

| aceptada

Respondida
Customize box texture in boxchart
As of R2022b, there is no built in method to change the BoxFaceColor to something other than a solid color. The File Exchange ha...

casi 2 años hace | 0

| aceptada

Respondida
How to interpolate with a polynom in 3D?
Use interp2. Here's an example x = 0.1:0.1:1; %sample x data y = transpose(1:10); %sample y data z = sin(x) - y.^x; %sample z...

casi 2 años hace | 0

Respondida
MATLAB Appdesigner custom installer does not create shortcut to the Windows desktop
When you compile your App Designer code, there will be output folders containing your compiled code. You can copy your executabl...

casi 2 años hace | 0

| aceptada

Respondida
Change the check box value of a Matlab Tree Node Check Box via code
Can you not make them second level nodes? fig = uifigure; cbt = uitree(fig,'checkbox','Position',[20 20 150 150]); % First ...

casi 2 años hace | 0

| aceptada

Respondida
How to divide a dataset into two subsamples?
Try deleting this line LOSS_1=LOSS; If that doesn't work, paste your data for LOSS and ATTORNEY.

casi 2 años hace | 0

Respondida
How do I plot a discrete set of points say [x1,x2,...,xn] along the real line?
A = gallery('lehmer',4); %example data x = eig(A); %your eigenvalues yValue = 0; %you can make this 1 or whatever you want pl...

casi 2 años hace | 1

| aceptada

Respondida
Appearance of logical values in uitable
app.UITable.ColumnEditable = true;

casi 2 años hace | 0

Respondida
Plot horizontal line over existing plot (on same figure)
You didn't specify what the y value of your graph needs to be, but you can take the information in this post and adjust it as ne...

alrededor de 2 años hace | 0

| aceptada

Respondida
Extracting UITable data for statistical analysis in the app designer
This worked for me function ButtonPushed(app, event) app.UITable.Data = rand(200,4); app.EditField.Value = mean(app.U...

alrededor de 2 años hace | 0

Respondida
Why does the order of calculation change the result?
It looks like the main differences between the two are Ltot, dz, and Ip. The variable Ip is especially weird. Which of these wer...

alrededor de 2 años hace | 0

Respondida
How can I calculate Global stiffness matrix?
I don't remember everything from my FEA classes, but I think this is what you're looking for C = zeros(6,6); A = [ 1 2 3 4 ; ...

alrededor de 2 años hace | 2

| aceptada

Respondida
How do you plot elements of a cell array?
Loop through your cells and use the hold on then hold off command. cellData{1} = [(1:20)',(1:20)' + rand(20,1)]; cellData{2} =...

alrededor de 2 años hace | 0

| aceptada

Respondida
Get my X and Y values from curve fitting tool
If you are using the Curve Fitting App, go to Export in the top right and select Export to Workspace. Then select OK, and your i...

alrededor de 2 años hace | 0

Respondida
extracting values from matlab double arrays
x1(x1 <= 1.5) x2(x2 <= 1.5) %... xn(xn <= 1.5)

alrededor de 2 años hace | 0

| aceptada

Respondida
what does this error mean and why cant i use the if function i use it in another function and it worked
You need to close your if statement. You can't leave it without putting "end" to signify where the if statement stops if %some ...

alrededor de 2 años hace | 0

| aceptada

Respondida
How to convert cell to matrix with different size of cell
Well the size of the data isn't the same. In the first cell, it is 6,760 rows and the second is 6,761 rows. So it can't combine ...

alrededor de 2 años hace | 0

Respondida
How to make a graph with x-axis at top and data points relative to y-axis with a straight line joined scatter?
You can do something like this x = 1:10; %x data y = x + round(rand(1,length(x)),2); %random y data p = plot(x,y,'-o'); %plot...

alrededor de 2 años hace | 0

Respondida
How to zoom on the mouse pointer
I'll post how I was able to do what you're asking. For your application, there may be a slight difference because you are using ...

alrededor de 2 años hace | 0

| aceptada

Respondida
nxm matrix function with zeros and ones
You probably want to name it something other than "square" which is already a MATLAB function. You're off to a good start though...

alrededor de 2 años hace | 1

Respondida
I would like to rename a 100 jpg images name at once
OldNames = "IMG1 " + transpose(string(1:10758)) + ").jpg.jpg"; OldNames(1:9,1) = "IMG1 0" + transpose(string(1:9)) + ").jpg.jpg...

alrededor de 2 años hace | 0

Respondida
How to plot multidimensional array in one axes like sequence of images?
You can manually make some of these plots like this t = 0:0.1:10; z1 = sin(t); z1(z1 < 0) = 0; z2 = sin(t-1); z2(z2 < 0) = ...

alrededor de 2 años hace | 0

| aceptada

Respondida
select points in a plot with the mouse
Are you using a UIAxes to show your image? If so, you can do something like this: function UIAxesButtonDown(app, event) C ...

alrededor de 2 años hace | 0

Respondida
Pass variables/structure to .mlapp (GUI/App designer)
evalin and assignin are the functions that should help. For example, if you are running App Designer and you have a variable cal...

alrededor de 2 años hace | 0

| aceptada

Respondida
Adding a Border to my map using Mapping Toolbox
Here's a start. I saved the picture you posted as "image.png". You may have to adjust the fig.Position vector to size it correct...

alrededor de 2 años hace | 0

| aceptada

Cargar más