14 total contributions since 2013

Answered

How do i create a colormap that seperates ranges between exact values?

Try something like this, custom colormap with 5 colors. mymap = [0 0 0 1 0 0 0 1 0 0 0 1 1 1 1]; surf(...

How do i create a colormap that seperates ranges between exact values?

Try something like this, custom colormap with 5 colors. mymap = [0 0 0 1 0 0 0 1 0 0 0 1 1 1 1]; surf(...

2 years ago | 0

Answered

How to plot Poincare map and Bifurcation diagrams of ferrosonance

For bifurcation diagram: Run the system for particular values of the parameter and store the time series. Change one of the pa...

How to plot Poincare map and Bifurcation diagrams of ferrosonance

For bifurcation diagram: Run the system for particular values of the parameter and store the time series. Change one of the pa...

2 years ago | 2

Answered

summation of two different loops

If the vectors generated are of same size then you can add them. It is not clear what you mean by loop. Do you mean for loops. w...

summation of two different loops

If the vectors generated are of same size then you can add them. It is not clear what you mean by loop. Do you mean for loops. w...

2 years ago | 0

Answered

Problem in copying figure in MATLAB 2014b

have you tried this eval(['print -dmeta nameofyourfile.emf']);

Problem in copying figure in MATLAB 2014b

have you tried this eval(['print -dmeta nameofyourfile.emf']);

5 years ago | 0

Answered

I have 32x32 matrix...But I want to make this a 512x512 matrix with the same element as in the 32x32 matrix..and the rest of which would be zero in 512x512 matrix.. how do i do it??

A=32x32 matrix B=zeros(512) for i= 1:32 for j=1:32 B(i,j)=A(i,j) end end try this

I have 32x32 matrix...But I want to make this a 512x512 matrix with the same element as in the 32x32 matrix..and the rest of which would be zero in 512x512 matrix.. how do i do it??

A=32x32 matrix B=zeros(512) for i= 1:32 for j=1:32 B(i,j)=A(i,j) end end try this

5 years ago | 0

Answered

How to construct image from a .dat file?

what does your dat file contain. did you try imagesc option. import the dat file into matlab and store as a variable. ...

How to construct image from a .dat file?

what does your dat file contain. did you try imagesc option. import the dat file into matlab and store as a variable. ...

5 years ago | 0

Answered

How can I store scores in txt file by fprintf?

since you want it in text format why dont you use dlm write. If suppose you want to save a particular variable say S use fo...

How can I store scores in txt file by fprintf?

since you want it in text format why dont you use dlm write. If suppose you want to save a particular variable say S use fo...

5 years ago | 0

Answered

Importing specific rows of Data from Text file

I dont know if this would help. when i looked at your sensor data the first column consisted of strings while remaining columns ...

Importing specific rows of Data from Text file

I dont know if this would help. when i looked at your sensor data the first column consisted of strings while remaining columns ...

5 years ago | 0

Answered

How do I use a for-loop to do fft and plot the power?

HI, Try this and let me know. for a= 0:4 A=fft(Be(a*1000:(a+1)*1000)); A(1)=[]; ...

How do I use a for-loop to do fft and plot the power?

HI, Try this and let me know. for a= 0:4 A=fft(Be(a*1000:(a+1)*1000)); A(1)=[]; ...

5 years ago | 0

Answered

How can I plot only certain values from an array?

just another method. This is round about way and will actually take more time to execute. j=1; for i=1:length(a)...

How can I plot only certain values from an array?

just another method. This is round about way and will actually take more time to execute. j=1; for i=1:length(a)...

5 years ago | 0

Answered

How to plot from certain range of data?

Did you try the following x=Scope1(:,1); y=Scope1(:,3); plot(x,y) xlim([10 20]) More easier option wo...

How to plot from certain range of data?

Did you try the following x=Scope1(:,1); y=Scope1(:,3); plot(x,y) xlim([10 20]) More easier option wo...

5 years ago | 0

Answered

How can I write a program to make someone input a 6 digit number and show a result of the summation of the 6 digits?

you can try this simple program by using fix. This writes a six digit number as sum of ones hundreds thousands etc. This code...

How can I write a program to make someone input a 6 digit number and show a result of the summation of the 6 digits?

you can try this simple program by using fix. This writes a six digit number as sum of ones hundreds thousands etc. This code...

5 years ago | 0

Question

How to use ode 45 to solve a system that is piecewise continous

I am trying to use ode45 to solve a differential equation in which a parameter depends on time. When t is even the parameter is ...

6 years ago | 0 answers | 0

Question

I have a, b and c. for different values of c i plot a vs b. since it took a lot of time manually to feed in different values of c and run the prog. I used a for loop and used 3d plot. Is there a way by which i can plot using diff color for diff c.

I have a, b and c. for different values of c i plot a vs b. since it took a lot of time manually to feed in different values of ...

7 years ago | 1 answer | 0