已回答
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]...

6 years 前 | 0

已回答
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(...

6 years 前 | 0

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

6 years 前 | 0

| 已接受

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

6 years 前 | 0

| 已接受

已回答
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...

6 years 前 | 1

| 已接受

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

6 years 前 | 0

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

6 years 前 | 0

已回答
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...

6 years 前 | 0

已回答
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...

6 years 前 | 0

已回答
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.

6 years 前 | 0

已回答
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...

6 years 前 | 0

| 已接受

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

6 years 前 | 0

| 已接受

已回答
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 = ...

6 years 前 | 0

已回答
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...

6 years 前 | 1

| 已接受

已回答
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...

7 years 前 | 1

| 已接受

已回答
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...

7 years 前 | 1

已回答
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.

7 years 前 | 0

已回答
how to do FFT from signal figure
Follow the example here.

7 years 前 | 0

| 已接受

已回答
Saving Matlab figure(Imagesc) to JPG without White borders
Look at this file

7 years 前 | 0

| 已接受

已回答
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...

7 years 前 | 0

已回答
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...

7 years 前 | 0

已回答
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...

7 years 前 | 0

| 已接受

已回答
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]; ...

7 years 前 | 0

已回答
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...

7 years 前 | 1

| 已接受

已回答
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...

7 years 前 | 1

已回答
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...

7 years 前 | 0

已回答
How to fix faded link on old documents
Refer to the tutorials located here.

7 years 前 | 0

已回答
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...

7 years 前 | 0

已回答
calculate the gradient at a point
Refer to the post here.

7 years 前 | 0

已回答
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...

7 years 前 | 0

加载更多