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

más de 1 año ago | 1

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

más de 1 año ago | 3

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

más de 1 año ago | 1

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

más de 1 año ago | 0 answers | 1

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

más de 1 año ago | 1

| accepted

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

más de 1 año ago | 2

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

más de 1 año ago | 1 answer | 1

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

más de 1 año ago | 1

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

más de 1 año ago | 1 answer | 1

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

más de 1 año ago | 1 answer | 2

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

más de 1 año ago | 1 answer | 1

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

alrededor de 2 años ago | 1 answer | 1

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

más de 2 años ago | 1 answer | 1

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

más de 2 años 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...

más de 2 años ago

Solved

Determine if input is odd

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

más de 2 años 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...

más de 2 años 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://...

más de 2 años 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 ...

más de 2 años 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...

más de 2 años 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...

más de 2 años ago

Solved

Increment a number, given its digits

Take as input an array of digits (e.g. x = [1 2 3]) and output an array of digits that is that number "incremented" properly, (i...

más de 2 años ago

Solved

Find the Oldest Person in a Room

Given two input vectors: * |name| - user last names * |age| - corresponding age of the person Return the name of the ol...

casi 3 años ago

Solved

Convert from Fahrenheit to Celsius

Given an input vector |F| containing temperature values in Fahrenheit, return an output vector |C| that contains the values in C...

casi 3 años ago

Solved

Calculate Amount of Cake Frosting

Given two input variables |r| and |h|, which stand for the radius and height of a cake, calculate the surface area of the cake y...

casi 3 años ago

Solved

Times 2 - START HERE

Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

casi 3 años ago

Solved

Vector creation

Create a vector using square brackets going from 1 to the given value x in steps on 1. Hint: use increment.

casi 3 años ago

Solved

Doubling elements in a vector

Given the vector A, return B in which all numbers in A are doubling. So for: A = [ 1 5 8 ] then B = [ 1 1 5 ...

casi 3 años ago