Risposto
Why do my figures look so pixelated after publishing?
There is a work around and discussion related to the same issue located here.

circa 7 anni fa | 0

Risposto
how can i model time delay in time domain in controller?
Look at the example here you will need to use the pade function.

circa 7 anni fa | 0

Risposto
How do I read an image file in .fits format and convert it to.png or .tiff?
Use fitsread() and imwrite() if you need further help please post the file you are working with.

circa 7 anni fa | 1

| accettato

Risposto
How to detect a stalled object in a video?
The example layed out here is very inforative and will take care of all your problems. You can play with different parameters su...

circa 7 anni fa | 0

Risposto
How to plot product of two summations?
I would do this symbollically. Use the symsum function and the subs equation, both links have examples to solve your problem.

circa 7 anni fa | 0

Risposto
Plot to Image?
Would the following work for you or at least push you in the right direction? x = 1:10; y = x.^2; xwidth = 300; ywidth = 2...

circa 7 anni fa | 0

Risposto
How do I plot a graph from a code that is is using a function and looping feature
You are redeffining NN unessecarily and the first instance of S(i) is not defined. Consider preallocationg and changing your cod...

circa 7 anni fa | 0

| accettato

Risposto
How do you know how many inputs your lsim function has?
Run: size(SYS) and you get: >> State-space model with 8 outputs, 1 inputs, and 16 states. According to lsim documentation: T...

circa 7 anni fa | 0

| accettato

Risposto
How to find the marker in the biggest row?
If you run the following code youll get the following answer: A = [5 2; 7 3; 4 5; 6 5; 8 6; 3 8]; [maxNum maxIdx] = max(A) ...

circa 7 anni fa | 0

Risposto
can anyone offer control of state space system using Iterative Learning Control in command window in MATALB
Here is an example that should push you in the correct direction. I havent completed it as I dont know what your reference signa...

circa 7 anni fa | 1

| accettato

Risposto
Execute text files in matlab
Make a text file that looks like this and call it "test.txt": 1, 2, 3, 4, 5 6, 7, 8, 9, 10 Use the following function to load...

circa 7 anni fa | 1

Risposto
create multiple submatrices from larger matrix
Does this work for you? x = rand(5000,3); count = 1; for ii = 1:100:length(x)-100 y{count} = x(ii:ii+100,:); coun...

circa 7 anni fa | 0

Risposto
How to display all values from the for loop in one variable
Try this (I had to make up your z values). Z = randi(5,[400,7]); for ii = 1:7 m{ii} = Z(:,ii:ii); end If you wanted t...

circa 7 anni fa | 0

Risposto
How to remove circle (magenta color circle) in front of legend?
Use the text function. A good example can be found here.

circa 7 anni fa | 0

| accettato

Risposto
how to insert a calculated index to trim a data set?
Use a diffferent variable name then width, it is a function used for tables and is used by MATLAB. You also need to ensure that ...

circa 7 anni fa | 0

Risposto
How do I graph the portion of the sphere in the first octant?
[x y z] = sphere; r = 2; surf(x*r, y*r, z*r); xlim([0 2.5]) ylim([0 2.5]) zlim([0 2.5])

circa 7 anni fa | 0

Risposto
Plot this for me please
Looks fine to me. t = 0:0.01:3; x = 7.234e-7*cos(132.9*t) - 1.054e-6*exp(-1.0*t) - 5.901e-6*cos(70.71*t) - 5.444e-9*sin(132.9...

circa 7 anni fa | 1

| accettato

Risposto
Help with writing a function to check a users input
You were on the right track. To make it easier on yourself you can include a string inside the input function like I did below. ...

circa 7 anni fa | 0

| accettato

Risposto
constructing a background from a sequence of images
Place all your images in a folder called "imageFolder" which is in the same directory as your scripts and functions. Run this co...

circa 7 anni fa | 0

| accettato

Risposto
Please help me fix the count for the nested for-loop
I dont fully understand the end goal of your function but your error was coming from redefining Rn as well as some of your indic...

circa 7 anni fa | 1

| accettato

Risposto
luminance component of an image
Run the following: I = imread('test.png'); J = rgb2gray(I); rgb2gray uses the same formual which is used to calculate luminan...

circa 7 anni fa | 0

| accettato

Risposto
how to extract data with some condition
Try the code below. You will have to change it to your data but you should get the idea. % Generate a random matrix of interge...

circa 7 anni fa | 4

| accettato

Risposto
How do I fix my graph?
Try the code below. Esentially I find the first instence when a value is greater than 260 and eliminate from that point to the e...

circa 7 anni fa | 0

Risposto
Unexpected result linspace function
It is due to round off error. Linspace documentation states the following regarding the fuction: If n is not an integer, linspac...

circa 7 anni fa | 0

| accettato

Risposto
I keep getting a syntax error on the 'if' function.
I may be mistaken but I have not seen this type of syntax used before in MATLAB. Try changing your function to something like th...

circa 7 anni fa | 0

Risposto
How do I loop a program that waits for a .dat file to be updated?
Depending on the size of your .dat file this may work for your application: while while ~isfile('steps.dat'); end ...

circa 7 anni fa | 0

| accettato

Risposto
How to get rid of angles in MATLAB world map?
Access the figure handle and set the angle labels to be a blank string. This code will do it for you: close all h = worldmap...

circa 7 anni fa | 1

| accettato

Risposto
car model identification using image processing
Hello, this is a good project! It is more machine / deep learning than image processing though. I did a similar project for one ...

circa 7 anni fa | 0

Risposto
Loop through the vector 6x5800 and save data in excel file.Hi
Try this out (data file attached). When dealing with large data sets its better to use .csv then .xlsx. clear all data = dl...

circa 7 anni fa | 0

Risposto
Why is importdata bringing in cell array?
You might have better luck going through the file line by line. For example: f = fopen('test.csv'); lineCount = 1; tline = ...

circa 7 anni fa | 0

| accettato

Carica altro