Question

convert double to signed int

Hi, Some doubt: if A=40000 = 0x9C40 and I'd like that 0x9C40 would be as signed integer - what shall be done? executing int1...

3 years ago | 0 answers | 1

Question

Generate DLL from matlab R14SP3 and call by python 3.5

I have some matlab code (split over 4 files test.m, a.m, b.m, c.m) from which I'd like to generate DLL file to be called by exte...

3 years ago | 0 answers | 0

Question

plot country borders with old matlab version

Hello, I'm using old Matlab (~2005) which doesn't contain built in option to plot maps and locations and connections between ...

3 years ago | 0 answers | 0

Question

Link Budget Analysis GUI

Hello, Is Link Budget Analysis reffers to the SATCOM or for LOS signals only? Parameters like G/T, atmospheric gas loss etc ...

3 years ago | 1 answer | 0

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

4 years ago | 0 answers | 0

Answered

Why do I get the error "Unrecognized 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 "Unrecognized 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...

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

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

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

5 years ago | 1 answer | 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...

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

5 years ago | 0 answers | 0

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

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

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

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

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

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

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

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

6 years ago | 0

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

6 years ago | 0

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

6 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;

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

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

6 years ago | 1

Answered

Can I use a vector as index variable for a loop?

You have to think MATLAB. Your code is messy and hard to read. i_max=[3;2;4]; <== column vector of size 1x3 n=size...

Can I use a vector as index variable for a loop?

You have to think MATLAB. Your code is messy and hard to read. i_max=[3;2;4]; <== column vector of size 1x3 n=size...

6 years ago | 0

Question

Convert 2D image to 3D with color map

Hello, I have a color image of radiation pattern. I'd like to convert this image into a 3D image, based on color map (whic...

6 years ago | 2 answers | 0

Question

import csv file with headers as variables name

Hello, I have a CSV file with first row containing column name, which is variable name. I'd like to import this file so th...

7 years ago | 1 answer | 0

Question

add points into bode plot - phase and magnitude

Hello, I was asked to add one point in each part of the bode plot. I can plot a point in the phase part, but how can I add a...

7 years ago | 1 answer | 0

Question

moving application between computers

Hello, I'd like to generate some application in matlab (for data analysis), and then to move it to other computer which don't...

9 years ago | 2 answers | 0

Question

comm.GMSKModulator & comm.GMSKDemodulator

Hello all, When using the comm.GMSKModulator & comm.GMSKDemodulator as their standard (i.e.modulator = comm.GMSKModulator; ...

9 years ago | 0 answers | 0