Solved

Find out the Gray Code for a Given Binary Number

Find out <http://en.wikipedia.org/wiki/Gray_code Gray Code> for a given binary number Example Binary input 1000 Gray ...

etwa ein Monat ago

Solved

Bit calculation

Give me the count of numbers from 1 to n having their last two bits as 0. For example function y = ret_count(4) y = x...

etwa ein Monat ago

Solved

Mysterious digits operation (easy)

What is this digit operation? 0 -> 0 1 -> 9 121 -> 9 44 -> 6 15 -> 5 1243 -> 7 ...

etwa ein Monat ago

Solved

Project Euler: Problem 1, Multiples of 3 and 5

If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23...

etwa ein Monat ago

Question

Remove line present under column names in table

Hi all, I have added some tables in word document using report generator 'Document' Class. However I am getting some lines(unde...

etwa ein Monat ago | 2 answers | 0

Solved

Crop an Image

A grayscale image is represented as a matrix in MATLAB. Each matrix element represents a pixel in the image. An element value re...

etwa 2 Monate ago

Solved

Rescale Scores

Each column (except last) of matrix |X| contains students' scores in a course assignment or a test. The last column has a weight...

etwa 2 Monate ago

Solved

Calculate Inner Product

Given two input matrices, |x| and |y|, check if their inner dimensions match. * If they match, create an output variable |z|...

etwa 2 Monate ago

Solved

Plot Damped Sinusoid

Given two vectors |t| and |y|, make a plot containing a blue ( |b| ) dashed ( |--| ) line of |y| versus |t|. Mark the minimum...

etwa 2 Monate ago

Solved

Calculate a Damped Sinusoid

The equation of a damped sinusoid can be written as |y = A.ⅇ^(-λt)*cos(2πft)| where |A|, |λ|, and |f| ...

etwa 2 Monate ago

Solved

Solve a System of Linear Equations

*Example*: If a system of linear equations in _x₁_ and _x₂_ is: 2 _x₁_ + _x₂_ = 2 _x₁...

etwa 2 Monate 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...

etwa 2 Monate 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...

etwa 2 Monate 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...

etwa 2 Monate ago

Question

Feasibility of using Xbox controller without simulink

Hi all i need the use the xbox controller in matlab to control different motors.I have browsed for resources but all the provide...

etwa 2 Monate ago | 0 answers | 0

Question

Detect multiple mouse input using Rawinput API in Matlab

Hello all, I am currently working on an application that requires two mice to control two motors in Matlab. I did some research ...

2 Monate ago | 0 answers | 0

Answered

Can't convert RGB image to grayscale with button in app designer

You are directly calling uiaxes handle but not the child that has the image object. To access the image displayed in uiaxes Tr...

Can't convert RGB image to grayscale with button in app designer

You are directly calling uiaxes handle but not the child that has the image object. To access the image displayed in uiaxes Tr...

2 Monate ago | 0

| accepted

Question

Mask Password with asterisk in edit field used in app designer

Hello all, I have created a basic gui in app designer for user login.It has username selection as dropdown and password as edit ...

3 Monate ago | 2 answers | 1

Answered

GUI with no 'close' and 'minimize' buttons

You can check the below link. https://www.mathworks.com/matlabcentral/answers/480169-how-to-catch-when-a-figure-was-minimized?...

GUI with no 'close' and 'minimize' buttons

You can check the below link. https://www.mathworks.com/matlabcentral/answers/480169-how-to-catch-when-a-figure-was-minimized?...

3 Monate ago | 0

Question

Hide minimize and close button of GUI developed using app designer

Hello all, I am currently developing an application using appdesigner. I want to hide the minimise and close button('x' mark) w...

3 Monate ago | 0 answers | 0

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

3 Monate 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:...

3 Monate ago

Question

Shift in trajectory of data points plotted after using imshow and hold on

Hello all I have encountered a weird problem today. The Final trajectory of the static points plotted after using imshow,hold on...

4 Monate ago | 0 answers | 0

Answered

app designer mouse events (position and clicks) on axes component

Create a function called 'mouseMove' inside app in your case. Refer https://www.mathworks.com/help/matlab/creating_guis/code-an...

app designer mouse events (position and clicks) on axes component

Create a function called 'mouseMove' inside app in your case. Refer https://www.mathworks.com/help/matlab/creating_guis/code-an...

4 Monate ago | 0

Answered

Error, matrix dimension must agree

Here Vp ,Vs are of class 'char' and cannot be divided. So you have to convert them to integer format for division.Try a = str2...

Error, matrix dimension must agree

Here Vp ,Vs are of class 'char' and cannot be divided. So you have to convert them to integer format for division.Try a = str2...

4 Monate ago | 1

| accepted

Answered

Trouble drawingpolyline in appdesigner

I think drawpolyline functionality for uiaxes has been recently added (r2020a). I am using r2019a and i got following.error: Fu...

Trouble drawingpolyline in appdesigner

I think drawpolyline functionality for uiaxes has been recently added (r2020a). I am using r2019a and i got following.error: Fu...

4 Monate ago | 1

Answered

access data from one app in another app in appdesigner

Found the solution. Pasting it here for reference. In app designer we can acess an app data using 'app' handle. In the above cas...

access data from one app in another app in appdesigner

Found the solution. Pasting it here for reference. In app designer we can acess an app data using 'app' handle. In the above cas...

4 Monate ago | 0

Question

Write Video in DICOM format

Hello all, I am trying to Write a Video in DICOM Format using MATLAB. I have observed that VideoWriter function will support onl...

8 Monate ago | 0 answers | 0

Question

Mouse callbacks not working for uifigure in 2017b version

I wanted to use some of the mouse callbacks like "windowbuttonmotion" fn for uifigure.I have gone through the documentation and ...

etwa ein Jahr ago | 0 answers | 0

Question

access data from one app in another app in appdesigner

I want to access value of string entered in editbox of app1 in app2.This is the code i have written %app1 code %in a button_pr...

etwa ein Jahr ago | 1 answer | 0