Civil Engineer specilized in Geotechnics.

Answered

How to use "nan"

Maybe this can help: quiver plot - need help to remove NaN - MATLAB Answers - MATLAB Central (mathworks.com)

How to use "nan"

Maybe this can help: quiver plot - need help to remove NaN - MATLAB Answers - MATLAB Central (mathworks.com)

16 jours ago | 0

Question

Get Windows taskbar height

Hello! I can't get the correct Windows taskbar height by code. I need it for the define the height of my app (app design). I ge...

17 jours ago | 1 answer | 0

Answered

Normally distributed Random numbers generator issue

The following (but also yours, from my pov) seems quite normal to me, why is it not ''enough'' normal for you? figure number =...

Normally distributed Random numbers generator issue

The following (but also yours, from my pov) seems quite normal to me, why is it not ''enough'' normal for you? figure number =...

18 jours ago | 0

Answered

while loop index exceeds array elements problem

Did you check your variable "i" has been set up to your desired value in the second while? Because in the first while you are up...

while loop index exceeds array elements problem

Did you check your variable "i" has been set up to your desired value in the second while? Because in the first while you are up...

19 jours ago | 0

Question

Error displaying custom Data Tips

I've created a callback to displaying Data Tips on a pointcloud (pcshow) after the space bar is pressed. The flow is: Press on ...

25 jours ago | 0 answers | 0

Question

Add image on pcshow plot

Is it possibile to add an image on a pcshow image (tab of images, in my case)? I'm using this but it does not work: How to Plac...

26 jours ago | 1 answer | 0

Answered

how to create a matrix in matlab?

Your question is not clear. If you have those 3 arrays: L12 = [0 0 0 0 1 1 1 1]; L13 = [0 0 1 1 0 0 1 1]; L23 = [0 1 0 1...

how to create a matrix in matlab?

Your question is not clear. If you have those 3 arrays: L12 = [0 0 0 0 1 1 1 1]; L13 = [0 0 1 1 0 0 1 1]; L23 = [0 1 0 1...

26 jours ago | 0

| accepted

Answered

Extract data below a curve

Your input data is something like that: % Hypotesis: black points do not overlay the grid (can lay in between blue points) A =...

Extract data below a curve

Your input data is something like that: % Hypotesis: black points do not overlay the grid (can lay in between blue points) A =...

29 jours ago | 1

Answered

Reverse data set as the example

I don't get the question as well. What result do you expect on the following arrays: X = [2 4 8 4 2 56 78]; Y= [2 2 4 11 75...

Reverse data set as the example

I don't get the question as well. What result do you expect on the following arrays: X = [2 4 8 4 2 56 78]; Y= [2 2 4 11 75...

30 jours ago | 0

Answered

How do I make different groups within a matrix?

How do you need to get arrays associated? Try this: clear all close all x= (50)*rand(50,1); y= (50)*rand(50,1); z= (50)...

How do I make different groups within a matrix?

How do you need to get arrays associated? Try this: clear all close all x= (50)*rand(50,1); y= (50)*rand(50,1); z= (50)...

30 jours ago | 1

| accepted

Answered

How to set the color in a for loop for a plot within the for loop with an if statement?

I don't get very well what you are asking for. You need to color t between 1 and 5 AND e between 1 and 5 in black, otherwise t b...

How to set the color in a for loop for a plot within the for loop with an if statement?

I don't get very well what you are asking for. You need to color t between 1 and 5 AND e between 1 and 5 in black, otherwise t b...

30 jours ago | 0

| accepted

Question

Position group docked figures proportional to screen size (javaframe)

Hi! I docked 7 figures within a group (javaframe?). I can't define a position for the whole group. Could you help me? I followed...

environ un mois ago | 0 answers | 0

Answered

Compare two datasets of different units

You could just plot them in one figure with two axes: Create Chart with Two y-Axes - MATLAB & Simulink - MathWorks Italia

Compare two datasets of different units

You could just plot them in one figure with two axes: Create Chart with Two y-Axes - MATLAB & Simulink - MathWorks Italia

environ un mois ago | 0

Answered

List the 10% highest values of a distribution

Change the last part: [Ms, idx] = sort(x,'descend'); % Sort Descending Result = Ms(1:ceil(length(Ms)*...

List the 10% highest values of a distribution

Change the last part: [Ms, idx] = sort(x,'descend'); % Sort Descending Result = Ms(1:ceil(length(Ms)*...

environ un mois ago | 1

Question

How delete panel in app design

Hi! Maybe this is a trivial question but I can't figure it out. How can I delete a panel in the APP DESIGN? It is an empty panel...

environ un mois ago | 1 answer | 0

Answered

saveas won't save my figure when in a for cycle

Something like this within each loop? FolderName='path to save your figures here' FigList = findobj('Type', 'figure'); for iF...

saveas won't save my figure when in a for cycle

Something like this within each loop? FolderName='path to save your figures here' FigList = findobj('Type', 'figure'); for iF...

environ un mois ago | 0

Question

How use pcshow in GUI

Hi you all! I would need to use pcshow in a GUI (app design). I tried something like this: p=pcshow(app.UIAxes, [ptCloud.verte...

environ un mois ago | 1 answer | 0

Question

progress bar in app design (GUI)

Hi! I need to create a progress bar like the following bar with the APP DESIGN: New in r2020a: App button animation & truecolo...

environ 2 mois ago | 1 answer | 1

Question

Change label color of the "Edit field (Numeric) element in App Designer

Hi! I am creating a GUI with the APP DESIGN. I would like to change the color of the Label associated to the "Edif field (Nume...

environ 2 mois ago | 1 answer | 0

Question

Reduce string length after check, with one line

Hello! I would like to reduce a string length after a check on the length itself, with one command. Is it possible? Something l...

8 mois ago | 1 answer | 0

Question

Classification (machine learning)

Good morning. I need to implement a classification algorithm: I have several time series and I need to recognize the trend. For...

12 mois ago | 1 answer | 0

Solved

Make a checkerboard matrix

Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Examp...

plus d'un an ago

Solved

Make the vector [1 2 3 4 5 6 7 8 9 10]

In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

plus d'un an ago

Solved

Determine if input is odd

Given the input n, return true if n is odd or false if n is even.

plus d'un an ago

Solved

Pizza!

Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

plus d'un an ago

Solved

7 segment LED display

Given a whole number, output how many segments would be lit up to display it on a 7 segment LED display (see Wikipedia: <http://...

plus d'un an ago

Solved

Test if a Number is a Palindrome without using any String Operations

*Description* Given an integer _X_, determine if it is a palindrome number. That is, _X_ is equal to the _X_ with the digits ...

plus d'un an ago

Solved

Rounding off numbers to n decimals

Inspired by a mistake in one of the problems I created, I created this problem where you have to round off a floating point numb...

plus d'un an ago

Solved

Number of 1s in the Binary Representation of a Number

*Description* Return the number of 1s in the (unsigned integer) binary representation of a number. This function should be ab...

plus d'un an ago