Answered

How to turn scatterplot labels on and off using uicontrol

Try the following method (it might work for you but there are some limitations) : x = rand(1,100); y = rand(1,100); pointsize =...

How to turn scatterplot labels on and off using uicontrol

Try the following method (it might work for you but there are some limitations) : x = rand(1,100); y = rand(1,100); pointsize =...

3 Tage ago | 0

Answered

Why is matlab giving me a a very small number when the answer should be EXACTLY zero?

It must be something to do with the limitation of matrix multiplication and the computing error comes with the this type of mult...

Why is matlab giving me a a very small number when the answer should be EXACTLY zero?

It must be something to do with the limitation of matrix multiplication and the computing error comes with the this type of mult...

4 Tage ago | 0

Answered

Create a new array on the basis of another array

Try: A = 100-V; A(A == max(A)) = 100;

Create a new array on the basis of another array

Try: A = 100-V; A(A == max(A)) = 100;

5 Tage ago | 0

| accepted

Answered

how to delete cell rows ?

One of the way to do: cell_sizes = cellfun(@size,QDSCD,'UniformOutput',false); cell_sizes = vertcat(cell_sizes{:}); ind = fi...

how to delete cell rows ?

One of the way to do: cell_sizes = cellfun(@size,QDSCD,'UniformOutput',false); cell_sizes = vertcat(cell_sizes{:}); ind = fi...

5 Tage ago | 0

| accepted

Answered

wirte in excel sheet.

So, in order to change row as you change the q, you have to change the range dynamically. row_num = 1; % you can change that u...

wirte in excel sheet.

So, in order to change row as you change the q, you have to change the range dynamically. row_num = 1; % you can change that u...

9 Tage ago | 0

Answered

Changing the For LOOP conditions

One of the way to do this is define the for loop conditions using predefined vectors. You can write vector to set how the for l...

Changing the For LOOP conditions

One of the way to do this is define the for loop conditions using predefined vectors. You can write vector to set how the for l...

9 Tage ago | 0

| accepted

Answered

How to enter subscripts in matlab? for a loop

Simply shift your indeces by 1 i.e. x0 becomes x1, x1 becomes x2 and so on. N = 500; x = zeros(N+1,1); x0 = 1; x(0+1) = x0;...

How to enter subscripts in matlab? for a loop

Simply shift your indeces by 1 i.e. x0 becomes x1, x1 becomes x2 and so on. N = 500; x = zeros(N+1,1); x0 = 1; x(0+1) = x0;...

10 Tage ago | 0

Solved

Word Counting and Indexing

You are given a list of strings, each being a list of words divided by spaces. Break the strings into words, then return a maste...

15 Tage ago

Solved

Knight's Tour Checker

Given a matrix a, determine whether or not a legal <http://en.wikipedia.org/wiki/Knight's_tour knight's tour> is present. The kn...

15 Tage ago

Solved

Volume of a box

Given a box with a length a, width b, and height c. Solve the volume of the box.

15 Tage ago

Solved

sum of first 'n' terms

Given n=10, find the sum of first 'n' terms Example: If n=10, then x=1,2,3,4,5,6,7,8,9,10. The sum of these n=10 terms is 55...

15 Tage ago

Solved

05 - Vector Equations 3

Define the vector _dVec_: <<http://samle.dk/STTBDP/Assignment1_2d.png>> (Logarithmically spaced numbers between 1 and 10) ...

15 Tage ago

Solved

Implement simple rotation cypher

If given a letter from the set: [abc...xyz] and a shift, implement a shift cypher. Example: 'abc' with a shi...

15 Tage ago

Solved

07 - Common functions and indexing 3

Define _eMat_: <<http://samle.dk/STTBDP/Assignment1_3e.png>> Create the variable _eMat2_, which is equal to _eMat_ with th...

15 Tage ago

Solved

Check that number is whole number

Check that number is whole number Say x=15, then answer is 1. x=15.2 , then answer is 0. <http://en.wikipedia.org/wiki/Whole...

15 Tage ago

Solved

Reverse the vector

Reverse the vector elements. Example: Input x = [1,2,3,4,5,6,7,8,9] Output y = [9,8,7,6,5,4,3,2,1]

15 Tage ago

Answered

Array indices must be positive integers or logical values.

y(0) = 1; % y(i) = k; i must be a natural number Not allowed in MATLAB. Instead write y(1) = 1;

Array indices must be positive integers or logical values.

y(0) = 1; % y(i) = k; i must be a natural number Not allowed in MATLAB. Instead write y(1) = 1;

15 Tage ago | 0

| accepted

Answered

Why does my function keep returning zero?

Replace K1 = A1*exp(-(E1/R*T)); by K1 = A1*exp(-(E1/(R*T))); ans subsequently for K2 & K3 too.

Why does my function keep returning zero?

Replace K1 = A1*exp(-(E1/R*T)); by K1 = A1*exp(-(E1/(R*T))); ans subsequently for K2 & K3 too.

16 Tage ago | 0

| accepted

Answered

How to find acceleration from velocity and time data ?

Assuming you have exported velocity data from the csv file using xlsread or something and saved it in a variable, say, 'vel'. To...

How to find acceleration from velocity and time data ?

Assuming you have exported velocity data from the csv file using xlsread or something and saved it in a variable, say, 'vel'. To...

16 Tage ago | 1

Answered

How can I write data to excel without overwrite data that already in the excel ?

To write in the empty rows, you have to specify that to xlswrite. So, either you know the row number beforehand and use that 'xl...

How can I write data to excel without overwrite data that already in the excel ?

To write in the empty rows, you have to specify that to xlswrite. So, either you know the row number beforehand and use that 'xl...

16 Tage ago | 1

| accepted

Answered

What's wrong with my for loop?

You don't need final 2 lines inside the 'for' loop to update 't'. t is automatically updated because of 'for' loop statement. ...

What's wrong with my for loop?

You don't need final 2 lines inside the 'for' loop to update 't'. t is automatically updated because of 'for' loop statement. ...

16 Tage ago | 0

Answered

Find empty cells in 3D cell?

Try this: [r,c] = find(cellfun(@isempty,channelResp)); [nR,nC,nD] = size(channelResp); Dep = floor(c/nC-0.0001)+1; Col = c -...

Find empty cells in 3D cell?

Try this: [r,c] = find(cellfun(@isempty,channelResp)); [nR,nC,nD] = size(channelResp); Dep = floor(c/nC-0.0001)+1; Col = c -...

16 Tage ago | 0

| accepted

Answered

How to do function shift in MATLAB?

Try: function [ func_up ] = FuncShift( func, shift ) func_up = @(x)(func(x)+shift); end

How to do function shift in MATLAB?

Try: function [ func_up ] = FuncShift( func, shift ) func_up = @(x)(func(x)+shift); end

17 Tage ago | 0

Answered

\graphing witth multiple functions

Try : a = gca; hold on plot(a.XLim,[560, 560],'m--') % plots horizontal line at y = 560 To find the intersection point at y ...

\graphing witth multiple functions

Try : a = gca; hold on plot(a.XLim,[560, 560],'m--') % plots horizontal line at y = 560 To find the intersection point at y ...

17 Tage ago | 0

| accepted

Answered

How to find the nth is the higher than and closest to 0.3

One of the several ways: A=[5 56 6.1 0.29 0.32 15 ]; [vec,ind] = sort(A); id = find(vec>0.3,1); rqd_value = vec(id) % Requi...

How to find the nth is the higher than and closest to 0.3

One of the several ways: A=[5 56 6.1 0.29 0.32 15 ]; [vec,ind] = sort(A); id = find(vec>0.3,1); rqd_value = vec(id) % Requi...

17 Tage ago | 0

Answered

Plotting multiple 3D plots on one graph

Try : figure (4) grid on hold on % Hold position should be at the start of plotting to overlap plots plot3(cm_willans,pma_14...

Plotting multiple 3D plots on one graph

Try : figure (4) grid on hold on % Hold position should be at the start of plotting to overlap plots plot3(cm_willans,pma_14...

17 Tage ago | 0

| accepted

Answered

Specifying the colour of a scatter plot

Try: scatter (x, y, 'filled', 'MarkerEdgeColor',[255, 66, 0]/255, 'MarkerFaceColor',[255, 66, 0]/255); to change tick labels f...

Specifying the colour of a scatter plot

Try: scatter (x, y, 'filled', 'MarkerEdgeColor',[255, 66, 0]/255, 'MarkerFaceColor',[255, 66, 0]/255); to change tick labels f...

19 Tage ago | 0

| accepted

Answered

How to convert time domain to frequency domain

Replace the following line : subplot(2,1,4);plot(t,z); figure; by the following code nfft = length(y); f = (0:1/nfft:1-1/nf...

How to convert time domain to frequency domain

Replace the following line : subplot(2,1,4);plot(t,z); figure; by the following code nfft = length(y); f = (0:1/nfft:1-1/nf...

19 Tage ago | 0

| accepted

Answered

Code following function?

Try this: z = zeros(size(y)); z(y>0) = 1; z(y<0) = -1;

Code following function?

Try this: z = zeros(size(y)); z(y>0) = 1; z(y<0) = -1;

20 Tage ago | 1

| accepted