photo

Evan


Last seen: 3 mois il y a Actif depuis 2012

Followers: 0   Following: 0

Message

Statistiques

All
  • 3 Month Streak
  • Thankful Level 3
  • Cody Challenge Master
  • Indexing I Master
  • Indexing II Master
  • Project Euler I
  • Introduction to MATLAB Master
  • Community Group Solver
  • Pro
  • Revival Level 1
  • Knowledgeable Level 4
  • First Answer

Afficher les badges

Feeds

Afficher par

Réponse apportée
Obtaining corresponding pixel indices in perspective-corrected image
I managed to find a solution to this problem. First note that this applies to MATLAB versions R2014b and earlier. While I can't ...

plus de 9 ans il y a | 0

| A accepté

Réponse apportée
Fibonacci sequence, slightly different.
It seems to be quite close. You just need to make one small change. You should reference the seq variable using the index, k, no...

presque 10 ans il y a | 0

Réponse apportée
Extracting matrix diagonal with diag(A)
Does this fix your problem? a = eye(4,4) == 1; diag(a) While the *diag* function works fine, if you have a variable n...

presque 10 ans il y a | 0

| A accepté

Réponse apportée
Merge tables with different dimensions?
Does this example do what you need? A = randi(9,4,3) B = randi(9,4,5) C = randi(9,4,2) D(1:4,1:size(A,2)) = A;...

presque 10 ans il y a | 0

Réponse apportée
search for a code in a cell
key = [1 1 -1 -1] C{1} = [1 1 1 1];C{2}=[1 1 -1 -1];C{3}=[1 -1 1 -1];C{4}=[1 -1 -1 1] loc = find(cellfun(@(x)all(x == ke...

presque 10 ans il y a | 1

| A accepté

Réponse apportée
I need help creating a function for taking an array and reversing it and i have to use a for loop. I have looked online but i really dont know what i am doing?
There are built-in functions for this, such as *fliplr* and *rot90*. However, if you want to use a loop, think about the proc...

presque 10 ans il y a | 0

Réponse apportée
Difference Between a Number and Character Array
These links might be helpful for understanding data types in MATLAB, as well as classes in general: * <http://www.mathworks.c...

presque 10 ans il y a | 0

Réponse apportée
When zooming, 3D plotted data exceeds uipanel extent despite axes being clipped
While I'm able to replicate this in previous MATLAB versions R2012a, R2012b, R2014a as well as some releases prior to 2011, this...

presque 10 ans il y a | 0

| A accepté

Réponse apportée
Most Efficient Spreadsheet File
If Image Analyst's solution doesn't work for you, you might try *csvread*. Assuming you're able to save your data in .csv format...

environ 10 ans il y a | 0

Question


Obtaining corresponding pixel indices in perspective-corrected image
I am attempting to warp an image taken from an off-center camera to produce an image that resembles the viewfield were it taken ...

environ 10 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
How to reverse a number?
x = 1234; s = num2str(x) - '0'; xr = polyval(s(end:-1:1),10)

environ 10 ans il y a | 2

Réponse apportée
User Defined input in form of a table
You can either import tabular data from excel using *xlsread* or create a GUI that contains a *uitable* with MATLAB. Creating yo...

environ 10 ans il y a | 0

| A accepté

Réponse apportée
Counting element length in cells.
Look into <http://www.mathworks.com/help/matlab/ref/cellfun.html *cellfun*> >> A = {'Piggy'; 'gue7352892'; 'hdufhe~jf'}; ...

environ 10 ans il y a | 9

Réponse apportée
switching pixel with defined colour in a matrix
If I is your image: I = imread('peppers.png'); R = I(:,:,1); G = I(:,:,2); B = I(:,:,3); Idx = reshape(randperm...

environ 10 ans il y a | 1

| A accepté

Réponse apportée
Random number generation after time interval
I'm assuming this program involves a loop. If so, is each iteration quick enough that it's sufficient to simply check how much t...

environ 10 ans il y a | 0

Réponse apportée
Is it possible to make graphs like this in MATLAB?
Have you tried *boxplot*? http://www.mathworks.com/help/stats/boxplot.html

environ 10 ans il y a | 0

Réponse apportée
How to store user-generated text within a loop?
In order to store multiple strings, likely of different lengths, you will need to use a cell array. <http://www.mathworks.com/he...

environ 10 ans il y a | 0

| A accepté

Réponse apportée
How can i get neighbors from 3D array but in the same order as the matrix ?
One way to do it: A = rand(5,5,5); B = false(size(A)); B(3,3,3) = true; %Point around which you want to find neighbor...

environ 10 ans il y a | 0

Réponse apportée
how to ellipse fitting to connected object?
help regionprops This allows you to return the orientation, major axis length, and minor axis length of binary data with r...

environ 10 ans il y a | 0

| A accepté

Réponse apportée
How to draw a two y axis and one x axis graph . The Two y axis should arrange in top and bottom and x axis should position in left side of the plot
If *plotyy* doesn't work for your purposes, you can create two axes with the same position, then set the 'Color' property of the...

environ 10 ans il y a | 0

Réponse apportée
code to form a matrix by selecting some elements in another matrix
Look into the *randi* function.

environ 10 ans il y a | 0

| A accepté

Réponse apportée
Problem in plotting a summation
Try out the *cumsum* function. Also it's worth noting that all the functions/operators you need (factorial, ./, .^, etc.) can al...

environ 10 ans il y a | 0

Réponse apportée
for loop for matlab files
% where N is the number of files for i = 1:N load(['M' num2str(N) '.m']) end This will change based on whether...

environ 10 ans il y a | 0

| A accepté

Réponse apportée
How to write program to choose random numbers from given input set?
see *randi*

environ 10 ans il y a | 0

Réponse apportée
How to navigate through Struct/Cell from Matlab Gui?
For determining the datatype of the arrays selected by the user, see the *iscell* and *isstruct* functions. The *who* command ca...

plus de 10 ans il y a | 0

Réponse apportée
Plot doubt: how to fill the squares.
Try using the *MarkerFaceColor* property. Example: x = 0:pi/32:2*pi; y = sin(x); z = cos(x); plot(x,y,'s',x,z,'...

plus de 10 ans il y a | 0

| A accepté

Réponse apportée
How to know time that spent matlab in solving problem?
help profile or help tic Running *tic* and *toc* will simply tell you how much time passed between the respective ...

plus de 10 ans il y a | 0

Réponse apportée
Easy for loop question
i must be a real, *positive* integer. Because i starts at 1, and you reference A(i-1,2), your first iteration will try to access...

plus de 10 ans il y a | 1

Réponse apportée
How to retain only the positive root of a quadratic equation?
help imag So, if you wanted to return only roots without complex parts: R_all = roots([1 1 0 1]); R_real = R_all(~i...

plus de 10 ans il y a | 1

Réponse apportée
How to accept an answer in a comment?
If you can't get them to re-submit it themselves, and if flagging doesn't work, I would just copy+paste it into an answer of you...

plus de 10 ans il y a | 0

Charger plus