Answered
Set up a function corresponding to this graph
Use the square function. The following should get you started: t = linspace(0,3*pi)'; x = square(t); plot(t,x) ylim([-2,2]...

5 years ago | 0

Answered
How do i graph various conditions in MATLAB
You can give the code below a try or post your own code so we can help you with your train of thought. x = 1:4000; y = zeros(...

5 years ago | 0

Answered
M-file function
Your function is calling itself without approaching any convergance or something that will allow it to end. Therefore it will ru...

5 years ago | 0

| accepted

Answered
Read signal Data from Simulink
Use the "From Workspace" block. Doccumentation can be found here.

5 years ago | 0

| accepted

Answered
How to remove a percentage of image counting from the bottom to top
Look at the example I wrote for you below. Use the size function and realize that imcrop takes an array in the form of [xPositio...

5 years ago | 1

| accepted

Answered
plot a smith chart
Look at the documentation and syntax located here: smithplot(frequency,data). You will find some examples as well.

5 years ago | 0

Answered
can not get values
Your data set and interplation dont line up. The R variable you define is: R = 379 24 1000 ...

5 years ago | 0

Answered
There is a error in my code. I have attached the equaion and my code. Kindly correct the part where i went wrong.
You never defined a "C" variable. You have C1, C2, etc... but not just "C". Additionally, you need to perform a summation in the...

5 years ago | 0

Answered
How to draw the Graph of Ns for different values of M?
Try this (change the ii to satisfy whatever range of N you would like to observe): for ii = 0:0.1:1 Entropy(ii) end Wher...

5 years ago | 0

Answered
Creating a boxplot for every row in a matrix
Try this: A = randi(6,[100,20]); boxplot(A) If your plot starts to feel crowded consider using a subplot to split it up.

5 years ago | 0

Answered
Matlab needs to calculate distance and find pixel size
You need to know the distance between those two points. I attachted part of a presentation where I did just that. I placed three...

5 years ago | 0

| accepted

Answered
line length in image
Use bwdist() and look at the answer here for an example.

5 years ago | 0

| accepted

Answered
Crop images using coordinates and save them
You will need to fill in the "hole" with white or black pixels. Give something like this a try: I = imread('test.png'); J = ...

5 years ago | 0

Answered
Cropping Watermarked image of 512 by % 512
I am assuming you want to crop about the center of the image. Give this a try (you might want to adjust using round, floor, ceil...

5 years ago | 1

| accepted

Answered
Why is the line in my figure not showing up?
Create the plot after your loop (or dont use a loop at all) as so: ... end figure(1)) x = 1:length(TR1); plot(x,TR1,'-rx...

5 years ago | 1

| accepted

Answered
collapse across dimensions of a matrix
Give this a try: % Generate random matrix A = randi(10,[19 64]); B = cat(3,A,A,A,A); C = cat(4,B,B); % Get indices and se...

5 years ago | 1

Answered
keep the number give by bwlabel to one object constant in all images of an image sequence
Look at the example located here. If this does not work for you please post your images so that we can help you further.

5 years ago | 0

Answered
how to do FFT from signal figure
Follow the example here.

5 years ago | 0

| accepted

Answered
Saving Matlab figure(Imagesc) to JPG without White borders
Look at this file

5 years ago | 0

| accepted

Answered
Does matlab run on a raspberry pi
Refer to the post here. You can use a pi for data acquisition and running stand alone files but you have to run matlab on an act...

5 years ago | 0

Answered
Error when plotting in parfor loop
To save a figure in a parfor loop you must do the following as found here. Otherwise save the data and plot after as mentioned b...

5 years ago | 0

Answered
datastore for large structured data
If your file is to big to read into memory consider using the matfile function. You get to write the data straight to the file w...

5 years ago | 0

| accepted

Answered
how to 7004829X1 into 5000X1 blocks?
Try this (you will have to adjust for your larger vector) but should do the trick: A = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]; ...

5 years ago | 0

Answered
Standalone file on a Raspberry Pi 3
You cannot run MATLAB code on the Raspberry Pi so generating code in Simulink to run on the RPI3 is the way to go. You will have...

5 years ago | 1

| accepted

Answered
Load an image and divide it into 8x8 matrices
Refer to the code here. You are having the errors as you are missing the third dimension of the matrix (the color space). The co...

5 years ago | 1

Answered
How can I create a gif that plays only once?
Using the code found from here I can confirm that if I use 0 as the 'loopcount' argument it plays once and inf it keeps repeatin...

5 years ago | 0

Answered
How to fix faded link on old documents
Refer to the tutorials located here.

5 years ago | 0

Answered
Hi all, can anyone help me generate a checkerboard where i can control each square color-wise in gray scale?
Use the checkboard function save it as an image and then adjust the greyscale as desired. Here is a basic example to get you goi...

5 years ago | 0

Answered
calculate the gradient at a point
Refer to the post here.

5 years ago | 0

Answered
How can i load a multiple 1D matlab file and store in single mat file?
Everything will be in a cell aray but this will do the trick: for ii = 1:numel(dir('*.mat')) result{ii} = load(strcat('dat...

5 years ago | 0

Load more