Beantwortet
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]...

mehr als 5 Jahre vor | 0

Beantwortet
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(...

mehr als 5 Jahre vor | 0

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

mehr als 5 Jahre vor | 0

| akzeptiert

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

mehr als 5 Jahre vor | 0

| akzeptiert

Beantwortet
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...

mehr als 5 Jahre vor | 1

| akzeptiert

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

mehr als 5 Jahre vor | 0

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

mehr als 5 Jahre vor | 0

Beantwortet
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...

mehr als 5 Jahre vor | 0

Beantwortet
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...

mehr als 5 Jahre vor | 0

Beantwortet
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.

mehr als 5 Jahre vor | 0

Beantwortet
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...

mehr als 5 Jahre vor | 0

| akzeptiert

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

mehr als 5 Jahre vor | 0

| akzeptiert

Beantwortet
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 = ...

mehr als 5 Jahre vor | 0

Beantwortet
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...

mehr als 5 Jahre vor | 1

| akzeptiert

Beantwortet
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...

mehr als 5 Jahre vor | 1

| akzeptiert

Beantwortet
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...

mehr als 5 Jahre vor | 1

Beantwortet
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.

mehr als 5 Jahre vor | 0

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

mehr als 5 Jahre vor | 0

| akzeptiert

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

mehr als 5 Jahre vor | 0

| akzeptiert

Beantwortet
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...

mehr als 5 Jahre vor | 0

Beantwortet
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...

mehr als 5 Jahre vor | 0

Beantwortet
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...

mehr als 5 Jahre vor | 0

| akzeptiert

Beantwortet
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]; ...

mehr als 5 Jahre vor | 0

Beantwortet
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...

mehr als 5 Jahre vor | 1

| akzeptiert

Beantwortet
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...

mehr als 5 Jahre vor | 1

Beantwortet
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...

mehr als 5 Jahre vor | 0

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

mehr als 5 Jahre vor | 0

Beantwortet
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...

mehr als 5 Jahre vor | 0

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

mehr als 5 Jahre vor | 0

Beantwortet
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...

mehr als 5 Jahre vor | 0

Mehr laden