Submitted

piratepal colors for plots

New colormap for plots (from piratepal function in R)

4 months ago | 1 download |

Submitted

Cyclic cellular automaton simple

cyclic cellular automaton implementation as from the website https://codepen.io/jlfwong/pen/YWZoyk

4 months ago | 0 downloads |

Answered

How Can I create struct field in a loop?

'struct' command creates new structure. you have to create new structure at the starting of loop. add new fields to the structur...

How Can I create struct field in a loop?

'struct' command creates new structure. you have to create new structure at the starting of loop. add new fields to the structur...

4 months ago | 0

| accepted

Answered

Specific change points in large dataset

Here is one of the methods using 'diff' function. use following code to get all the difference values and plot those values to...

Specific change points in large dataset

Here is one of the methods using 'diff' function. use following code to get all the difference values and plot those values to...

7 months ago | 0

Answered

read multiple csv files from different subfolders

Use 'dir' function to get the directory and file list of any folder. e.g D=dir('Raw data'); output 'D' is an structure array c...

read multiple csv files from different subfolders

Use 'dir' function to get the directory and file list of any folder. e.g D=dir('Raw data'); output 'D' is an structure array c...

7 months ago | 0

Answered

How to convert time to a number?

use following code to get values as string array. time=input(prompt,'s'); split the output 'time' using split function with de...

How to convert time to a number?

use following code to get values as string array. time=input(prompt,'s'); split the output 'time' using split function with de...

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

8 months ago

Question

why 'colormap' did not change the color of my plots?

example: figure, plot(rand(5)) colormap hot above code did not change the color of plot.

8 months ago | 2 answers | 0

Answered

Extracting Slices From Slice Function

use the vector slicing to get one slice, Let V is the input volume. e.g S=V(:,:,1); use 'imshow' or 'imagesc' functions to vie...

Extracting Slices From Slice Function

use the vector slicing to get one slice, Let V is the input volume. e.g S=V(:,:,1); use 'imshow' or 'imagesc' functions to vie...

8 months ago | 0

| accepted

Answered

Help with Loops and Switch cases and Mean

here is the code Q=input('Would you like to enter a real number? (Yes or No) ','s'); n=[]; switch Q case 'Yes' ...

Help with Loops and Switch cases and Mean

here is the code Q=input('Would you like to enter a real number? (Yes or No) ','s'); n=[]; switch Q case 'Yes' ...

8 months ago | 1

| accepted

Answered

How to shift a matrix

loop version: M=[ 1,2,3; 4,5,6; 7,8,9; ]; C=nan(3,4); for i=1:size(M,1) if mod(i,2)==1 C(i,2:end)=M...

How to shift a matrix

loop version: M=[ 1,2,3; 4,5,6; 7,8,9; ]; C=nan(3,4); for i=1:size(M,1) if mod(i,2)==1 C(i,2:end)=M...

8 months ago | 1

| accepted

Answered

How to upload csv. files from multiple folders

to automate the file and folder access operations, do not use 'uigetfile' or 'uigetdir' functions. use 'dir' function to get th...

How to upload csv. files from multiple folders

to automate the file and folder access operations, do not use 'uigetfile' or 'uigetdir' functions. use 'dir' function to get th...

8 months ago | 0

Answered

How to access data from a struct when the dot notated reference is passed as a char array?

To to get the field names of struct array, use 'fieldnames' function S.x=1; S.y=2; fields = fieldnames(S) then, to get the...

How to access data from a struct when the dot notated reference is passed as a char array?

To to get the field names of struct array, use 'fieldnames' function S.x=1; S.y=2; fields = fieldnames(S) then, to get the...

8 months ago | 0

Answered

Question about import a .txt file into matlab

you can use 'fopen' and 'fread' functions. https://www.mathworks.com/help/matlab/ref/fread.html

Question about import a .txt file into matlab

you can use 'fopen' and 'fread' functions. https://www.mathworks.com/help/matlab/ref/fread.html

8 months ago | 0

Answered

wirte in excel sheet.

Delete the already created excel sheet. Change the last line of code to xlswrite('Book1.xlsx',q,'A1:BI1') if you want to stor...

wirte in excel sheet.

Delete the already created excel sheet. Change the last line of code to xlswrite('Book1.xlsx',q,'A1:BI1') if you want to stor...

8 months ago | 0

Answered

Problem with data saving in a for loop

Best solution is: store the output variable 'vector' fom each iteration, into another variable(array, cell array). then at the ...

Problem with data saving in a for loop

Best solution is: store the output variable 'vector' fom each iteration, into another variable(array, cell array). then at the ...

8 months ago | 1

Answered

Problem with data saving in a for loop

you have to put the 'xlswrite' functions inside the for loop. also, for each iteration, change the sheet number or the 'xlRange...

Problem with data saving in a for loop

you have to put the 'xlswrite' functions inside the for loop. also, for each iteration, change the sheet number or the 'xlRange...

8 months ago | 1

| accepted

Answered

Loop iteration filling an array

you have used semicolom at the middle of 'AAA = [SETT,[NEXTse(1 ........' code. so may be the size did not matching. try usin...

Loop iteration filling an array

you have used semicolom at the middle of 'AAA = [SETT,[NEXTse(1 ........' code. so may be the size did not matching. try usin...

8 months ago | 0

Answered

Create lookup table for cell array

Code example to convert cell array to table. A={1,2,3} B=array2table(A');

Create lookup table for cell array

Code example to convert cell array to table. A={1,2,3} B=array2table(A');

8 months ago | 0

Answered

I need to make a square wave

see: https://in.mathworks.com/help/signal/examples/signal-smoothing.html https://in.mathworks.com/matlabcentral/answers/3205...

I need to make a square wave

see: https://in.mathworks.com/help/signal/examples/signal-smoothing.html https://in.mathworks.com/matlabcentral/answers/3205...

8 months ago | 0

Answered

Write down the MATLAB commands for each of the following tasks.

solving equations: https://in.mathworks.com/help/symbolic/solve.html

Write down the MATLAB commands for each of the following tasks.

solving equations: https://in.mathworks.com/help/symbolic/solve.html

8 months ago | 0

Answered

sir,i would like to implement pso (particle swarm optimization)in speech could you please help

particle swarm optimization code https://in.mathworks.com/matlabcentral/fileexchange/52857-particle-swarm-optimization-pso you...

sir,i would like to implement pso (particle swarm optimization)in speech could you please help

particle swarm optimization code https://in.mathworks.com/matlabcentral/fileexchange/52857-particle-swarm-optimization-pso you...

9 months ago | 0

Answered

Creating shapes in binary images

you can insert a shape in a image using the function 'insertShape'. e.g. RGB = insertShape(I,shape,position);

Creating shapes in binary images

you can insert a shape in a image using the function 'insertShape'. e.g. RGB = insertShape(I,shape,position);

10 months ago | 0

Answered

To use Totrolet Transform what inbuilt function and parameters to be used in matlab

Here is Link: https://anonymousfiles.io/mbKERbdC/

To use Totrolet Transform what inbuilt function and parameters to be used in matlab

Here is Link: https://anonymousfiles.io/mbKERbdC/

10 months ago | 0

Answered

Hovering mouse over a variable suddenly doesn't show present value in R2015b?

I got this issue in matlab 2018a. I found that one of my variable name is 'eval'. 'eval' is an inbuild function name, so i chang...

Hovering mouse over a variable suddenly doesn't show present value in R2015b?

I got this issue in matlab 2018a. I found that one of my variable name is 'eval'. 'eval' is an inbuild function name, so i chang...

1 year ago | 2

Answered

Detect the changes in two images

you can extract the region level features such as SIFT, hog descriptors from each image and compare. Or, detect object regions u...

Detect the changes in two images

you can extract the region level features such as SIFT, hog descriptors from each image and compare. Or, detect object regions u...

1 year ago | 0

Answered

how can detect objects from images?

some object detection methods Viola-Jones Algorithm for object and face detection hog descriptors for pedestrian detection ...

how can detect objects from images?

some object detection methods Viola-Jones Algorithm for object and face detection hog descriptors for pedestrian detection ...

1 year ago | 0

Solved

Make a checkerboard matrix

Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Examp...

1 year ago

Solved

Find all elements less than 0 or greater than 10 and replace them with NaN

Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

1 year ago