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

circa 3 anni fa | 0

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

circa 3 anni fa | 1

| accettato

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

circa 3 anni fa | 0

Risposto
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*...

circa 3 anni fa | 1

Risposto
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

circa 3 anni fa | 1

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

circa 3 anni fa | 0

| accettato

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

circa 3 anni fa | 0

| accettato

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

circa 3 anni fa | 0

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

circa 3 anni fa | 0

| accettato

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

circa 3 anni fa | 0

| accettato

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

circa 3 anni fa | 0

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

circa 3 anni fa | 1

| accettato

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

circa 3 anni fa | 0

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

circa 3 anni fa | 0

| accettato

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

circa 3 anni fa | 0

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

circa 3 anni fa | 0

Risposto
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 ; ...

circa 3 anni fa | 2

| accettato

Risposto
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} =...

circa 3 anni fa | 0

| accettato

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

circa 3 anni fa | 0

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

circa 3 anni fa | 0

| accettato

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

circa 3 anni fa | 0

| accettato

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

circa 3 anni fa | 0

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

circa 3 anni fa | 0

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

circa 3 anni fa | 0

| accettato

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

circa 3 anni fa | 1

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

circa 3 anni fa | 0

Risposto
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) = ...

circa 3 anni fa | 0

| accettato

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

circa 3 anni fa | 0

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

circa 3 anni fa | 0

| accettato

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

circa 3 anni fa | 0

| accettato

Carica altro