Question

draw three 3d plots on same figure

Hello, I have 3 datasets: X & Y are same but the Z is diffrent. I would like to draw on same figure the 3 sets as follows: eac...

6 months ago | 0 answers | 0

Answered

Why do I get the error "Undefined function or variable"?

(Matlab R14) Something strange is that when I try to call some function from toolbox (communication) I'm getting that it is not...

Why do I get the error "Undefined function or variable"?

(Matlab R14) Something strange is that when I try to call some function from toolbox (communication) I'm getting that it is not...

8 months ago | 0

Question

remove duplicate rows from text file

I'd be glad to have some advise on the fastest way to read a text file which contains duplicate rows, remove all the duplicates ...

1 year ago | 1 answer | 0

Question

rectangle with color description

Hello, I'm using a rectangle function to draw some color specification on my plots. I'd like to specify what is th...

1 year ago | 1 answer | 0

Question

Sourcery G++ installation into matlab

Hi I'm trying to lunch the <https://www.mathworks.com/matlabcentral/fileexchange/60322-gyroboy-self-balancing-two-wheel-robot...

1 year ago | 0 answers | 0

Question

java joinGroup invocation not working

Hello, In matlab version 6.5.0180913a (R13) which have java version 1.3.1_01 I'm trying to listen to some multicast packet us...

1 year ago | 0 answers | 0

Question

Calling a java class in Matlab

Hi, When calling my java class, I'm getting " _No main method with appropriate signature exists in Java class XXX_" error ...

1 year ago | 0 answers | 0

Solved

Number of Even Elements in Fibonacci Sequence

Find how many even fibonacci numbers are available in the first d numbers. Consider the following first 14 numbers 1 1 2...

2 years ago

Question

skip legend entries while plotting data

I have following issue: I'm plotting multiple graphs on the same figure. Before plotting them, there are some data interpolat...

2 years ago | 3 answers | 0

Question

parsing XML file with defined format

Hello, I have following xml file: <message Name="abc"> <element name=XYZ enumType="enum1"> <enumeration> ...

2 years ago | 2 answers | 0

Question

reading XML file with I8 as attribute value

Hello, I'm reading some XML file using the xml_io_tools. In the XML file I have following line: <field storage="I8" a...

2 years ago | 0 answers | 0

Question

zoom-in into figure, doesn't change Y axes

Hello, When performing zoom in on some positive values in the figure, where I have some negative values, after the zoom-in, I...

2 years ago | 1 answer | 0

Question

multivariable curve fitting with constraints

Hello, I'm confused from all the least squares functions which is supported by Matlab: I have a function which is the basis ...

2 years ago | 1 answer | 0

Answered

Imagine I have a number that is all the numbers in the universe stuck to eachother, from 1 to infinity. (1234567891011121314151617181920212223...). How can I write a code that says: If I have a number n, what is the nth digit of this gigantic number?

just use mod, floor functions a=17 b=a mod(b,10) <=== you will get 7 repeat till the n-th digit ...

Imagine I have a number that is all the numbers in the universe stuck to eachother, from 1 to infinity. (1234567891011121314151617181920212223...). How can I write a code that says: If I have a number n, what is the nth digit of this gigantic number?

just use mod, floor functions a=17 b=a mod(b,10) <=== you will get 7 repeat till the n-th digit ...

3 years ago | 0

Answered

When calculating the standard deviation of arrays of complex numbers c, why is std(c) not equal to std(abs(c))?

Please have a look on Peter's response <https://www.mathworks.com/matlabcentral/newsreader/view_thread/57323 here>

When calculating the standard deviation of arrays of complex numbers c, why is std(c) not equal to std(abs(c))?

Please have a look on Peter's response <https://www.mathworks.com/matlabcentral/newsreader/view_thread/57323 here>

3 years ago | 0

Answered

How to calculate the roll-pitch-yaw of a given plane

just assume that one of the x,y,z is 0 in order to calculate the angles. For example, for theta, which is the angle between x...

How to calculate the roll-pitch-yaw of a given plane

just assume that one of the x,y,z is 0 in order to calculate the angles. For example, for theta, which is the angle between x...

3 years ago | 0

Solved

Weighted average

Given two lists of numbers, determine the weighted average. Example [1 2 3] and [10 15 20] should result in 33.333...

3 years ago

Solved

Sum all integers from 1 to 2^n

Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.

3 years ago

Answered

Plot custom graph on MATLAB Simulink

you have a lot of options. one of them is to save the time and speed from simulink to matlab variables and use plot after the ...

Plot custom graph on MATLAB Simulink

you have a lot of options. one of them is to save the time and speed from simulink to matlab variables and use plot after the ...

3 years ago | 0

Solved

Finding Perfect Squares

Given a vector of numbers, return true if one of the numbers is a square of one of the other numbers. Otherwise return false. E...

3 years ago

Solved

Column Removal

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

3 years ago

Solved

Triangle Numbers

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

3 years ago

Solved

Select every other element of a vector

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

3 years ago

Solved

Determine if input is odd

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

3 years ago

Solved

Find the sum of all the numbers of the input vector

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

3 years ago

Answered

Subscripted assignment dimension mismatch.

Please do some initialization of the nc_sst nc_sst=zeros(120,110,10) Then it will work

Subscripted assignment dimension mismatch.

Please do some initialization of the nc_sst nc_sst=zeros(120,110,10) Then it will work

3 years ago | 1

| accepted

Answered

How do I add 1 to all even numbers and add 3 to all odd numbers in a vector?

vec=vec+1+mod(vec,2)*2;

How do I add 1 to all even numbers and add 3 to all odd numbers in a vector?

vec=vec+1+mod(vec,2)*2;

3 years ago | 0

| accepted

Answered

How can I use FIND to extract the indices of 1 elements in a 0/1 matrix?

[row,col] = find(X) returns the row and column subscripts of each nonzero element in array X PS: matlab indexes are starting ...

How can I use FIND to extract the indices of 1 elements in a 0/1 matrix?

[row,col] = find(X) returns the row and column subscripts of each nonzero element in array X PS: matlab indexes are starting ...

3 years ago | 1

| accepted

Answered

reading multiple files using importdata

1. you have to do the dir command before the strcat 2. you can't do the stract on the whole list, you have to do it one by on...

reading multiple files using importdata

1. you have to do the dir command before the strcat 2. you can't do the stract on the whole list, you have to do it one by on...

3 years ago | 1