A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

Réponse apportée
Subscripted assignment dimension mismatch.
Please do some initialization of the nc_sst nc_sst=zeros(120,110,10) Then it will work

plus de 9 ans il y a | 1

| A accepté

Réponse apportée
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;

plus de 9 ans il y a | 0

| A accepté

Réponse apportée
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 ...

plus de 9 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 9 ans il y a | 1

Réponse apportée
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...

plus de 9 ans il y a | 0

A résolu


Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

plus de 9 ans il y a

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

presque 10 ans il y a | 2 réponses | 0

2

réponses

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

presque 10 ans il y a | 1 réponse | 0

1

réponse

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

environ 10 ans il y a | 1 réponse | 0

1

réponse

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

presque 12 ans il y a | 2 réponses | 0

2

réponses

Question


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

plus de 12 ans il y a | 1 réponse | 0

0

réponse

Question


problem with freeing memory in mex file
In my mex file, I get strange error on freeing memory on mxDestroyArray(metric_state); Can somebody go over the code and find...

plus de 12 ans il y a | 1 réponse | 0

1

réponse

Question


problem executign mex file
Hello, I've wrote some mex file, compiled it without any problem, but have problem to run it. Every time when I'm executing ...

plus de 12 ans il y a | 2 réponses | 0

2

réponses

Question


using MEX file and constants
Hello, I need to use PI value inside the mex file. how should i do it? (because right now I'm getting an error): Error GMSK_...

plus de 12 ans il y a | 1 réponse | 0

1

réponse

Question


generating AWGN in matlab
I'd like to have your overview if what I'm doing is OK. I need to plot the BER vs Eb/No. So the noise power which I should ge...

plus de 12 ans il y a | 2 réponses | 0

2

réponses

A résolu


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

presque 13 ans il y a

A résolu


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

presque 13 ans il y a