Community Profile

Contact

Top 5% contributor

Check here: <http://matlab.wikia.com/wiki/FAQ#Why_is_0.3_-_0.2_-_0.1_.28or_similar.29_not_equal_to_zero.3F link> If you need...

accepted

0

Answered 2 years ago

Hi Doug, varargin starts at index 1, not index 2. That should fix it up.

Hi, Here is my implementation. Let me know if there is something you do not understand. [r,c] = size(a); % Starts...

Hi Z, By default, toolboxes are not listed in your Win7 start menu (I'm not sure you can make them appear there). You can ope...

Hi Z, Here are 2 solutions: 1. Change: disp [rate, duration] to: disp([rate, duration]) 2. Use fprintf state...

1

Hi, I am trying to use an if statement using the == comparator to search an array of numbers. Something like this: for i = ...

2 Answers

Asked 3 years ago

I assume you will add items to the ship based solely on value/weight ratio? If so, this is quite simple. A while loop is writ...

Answered 5 years ago

Hi, I am wondering if it is possible to use the EOF flag on Simulink's 'From Multimedia File' block to trigger block parameter ...

1 Answers

Asked 5 years ago

Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...

Solve this!

8 days ago

Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; and ...

Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

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

Given a and b, return the sum a+b in c.

Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

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

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

Strings in Matlab must be surrounded by single quotes. For example: >> 'cp_2-feb-2016_1' ans = cp_2-feb-2016...

Answered 8 days ago

The csvread function is capable of doing what you want to do.

Hi Siddharth, I would take a look at the imread function build into Matlab. For an RGB image of size M-by-N, it will import t...

Hi Vaishali, Matlab array indices must be positive integers. PN1 is a matrix or array. PN1(x,y) specifies the array element a...

Hi Mohsen, A few things I will recommend: 1. Take advantage of Matlab's Profiler. Type profview in the Command Window to a...

Hi Jonathan, Your problem is that the findpeaks function can return an empty array, [ ], or an array with multiple entries [p...

Hi, I'm writing a code that uses symbolic variables and ezplot. My equation contains 17 variables, and I am trying to find the d...

0 Answers

I'm developing an audio equalizer using MATLAB's fdatool, and I'm noticing some very strange things are happening. For low-frequ...

Choose your country to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .

You can also select a location from the following list:

See all countries