Beantwortet
Finding a circle enclosing data points in a tilted plane
Hi Doctor61, First, from your previous posts and this one I see that you're doing lots of stuff with 3d geometry. I think tha...

mehr als 11 Jahre vor | 1

| akzeptiert

Beantwortet
Interpolating matrices of different sizes to the same size
Hi Eliott, Do you have the image processing toolbox? If so, this will be quite easy: targetSize = [60 128]; Model_2_r...

mehr als 11 Jahre vor | 2

| akzeptiert

Frage


Can I make a spline both smoothing *and* periodic?
Hi all, I would like to make a smoothing spline through data, and enforce point and gradient equality at either end of my spl...

mehr als 11 Jahre vor | 1 Antwort | 0

1

Antwort

Beantwortet
imfindcircles doesn't work
imfindcircles is part of the image processing toolbox, I think it came into that toolbox in MATLAB version 2012a. Do you have...

fast 12 Jahre vor | 0

Beantwortet
How to determine if enter(return) was pressed ?
Hi Peter, I've found that it's often easier to supply an onKeyPress function like follows: function testme() figure('...

fast 12 Jahre vor | 0

Beantwortet
fprintf %E Leading zero
Interesting question Peter... Here's a solution I found, which pretty much involves brute force shifting of characters around...

fast 12 Jahre vor | 0

Beantwortet
best way in terms of performance to read a text file
If your text file has exactly what you've got there (numbers separated by spaces): ---== contents of test.txt ==--- 1 2 ...

fast 12 Jahre vor | 1

| akzeptiert

Beantwortet
Set colorbar ranges in 3d graphs
Hi Eleftheria, You can use *caxis()* to set the colour limits (which is part of your problem... we'll get to the next bit). ...

fast 12 Jahre vor | 0

| akzeptiert

Beantwortet
How to produce isosurfaces
Hi Mikael, you're almost there. Isosurface cuts the data _above_ the isovalue you provide. You need to change your value to, say...

fast 12 Jahre vor | 1

| akzeptiert

Beantwortet
How can I make matlab stop recognizing string as char?
I think the issue here is just a typo: "strcomp" is not a MATLAB function. I think you mean "strcmp". wavetype = 'sawtoo...

fast 12 Jahre vor | 1

| akzeptiert

Beantwortet
Make code faster for import and array creation
Hi Jenna, I bet this is a pre-allocation issue. When you build a big matrix one column at a time (such as is being done for *...

fast 12 Jahre vor | 0

| akzeptiert

Beantwortet
how create a new matrix with values found in an another matrix
Hi Gianluca, Have you tried using the second output from find_ndim? [I, Imap] = find_ndim(A,3,'first'); B = A(Imap); ...

fast 12 Jahre vor | 1

| akzeptiert

Beantwortet
change the orientation of the xtick labels
There's no way to _directly_ change the orientation of the xtick labels (using plain old MATLAB). You can try a work-around: ...

fast 12 Jahre vor | 0

| akzeptiert

Beantwortet
find index on 3d matrix
Hi Gianluca, The MATLAB docs say "TriScatteredInterp is the recommended alternative to griddata as it is generally more effic...

fast 12 Jahre vor | 2

| akzeptiert

Beantwortet
How to replace multiple strings in a txt file
Hi Steven, Try this, it's basically 3 steps: # Read the file into a cell of strings (1 per line in the original file) # R...

fast 12 Jahre vor | 0

| akzeptiert

Beantwortet
what is another logic that has execution time faster than randi?
I agree with Matt - I bet there are faster ways to run your loop, and we can probably help out if you can describe what the loop...

fast 12 Jahre vor | 0

| akzeptiert

Beantwortet
Load Column Data in Popup Menu Guide
Hi Amanda, fid = fopen('A.txt'); datas = textscan(fid,'%f %f','headerlines',1); fclose(fid); figure winterHan...

fast 12 Jahre vor | 0

| akzeptiert

Beantwortet
Is it possible to update two different graphs?
Hi David, What exactly do you mean by "keep two different graphs going"? If you just mean that you want to have two graphs...

fast 12 Jahre vor | 2

| akzeptiert

Beantwortet
Reading data from a text file
Hi Bry This code should work just fine to do what you describe. It uses a regular expression at each line of the text file to...

fast 12 Jahre vor | 0

| akzeptiert

Beantwortet
plotting data with different color
data = rand(120,3) figure, hold on plot(data(:,1),'go') plot(data(:,2),'ro') plot(data(:,3),'bo') set(gca,'Colo...

fast 12 Jahre vor | 2

| akzeptiert

Beantwortet
Purpose of guidata(hObject,handles)
Every graphics "object" (a figure, an axes, a button, a textbox etc) is represented by a "handle" variable. That's the hObject. ...

fast 12 Jahre vor | 52

| akzeptiert

Beantwortet
How can one GUI write to an Edit Text box on another GUI?
"What's the magic recipe?" 1. Get a handle to the text box you want to edit. 2. Call: set(myHandle,'String','My New S...

fast 12 Jahre vor | 2

Beantwortet
How can I query data?
Hi Tan, let's take this one step at a time. *STEP 1: Load your data from excel and into MATLAB* allData = xlsread('c:/yo...

fast 12 Jahre vor | 1

| akzeptiert

Beantwortet
creating a figure that is a segment of another
I see a few problems: Your *f* variable is still based on the original vector of *t*. You need to run: f = 53*cos(104*pi...

fast 12 Jahre vor | 0

| akzeptiert

Beantwortet
Why does MATLAB give an error on an axes plot when I change with new variable (a22) in my formula??
Hi Sven (nice name, btw) Replace the one line: axis([qstart qstop min(a22) max(a22)]); With the two lines: dis...

fast 12 Jahre vor | 1

| akzeptiert

Beantwortet
Correctly wrap data for spherical interpolation.
Justin, You're in luck - I've had the exact same problem and worked reasonably hard to get an acceptable solution. See the co...

fast 12 Jahre vor | 1

| akzeptiert

Beantwortet
2D graph + Colour. With meshed grid of variables X and Y
Hi Laura, try this: % Make your data (you've probably got your own X,Y,Z) [X,Y,Z] = peaks; % Show your data figu...

etwa 12 Jahre vor | 0

Beantwortet
How to set axis values using a vector.
Hi Jonathon, I think your problem has one of the following solutions: _1. Your image is a perfect "grid", but you want t...

etwa 12 Jahre vor | 1

| akzeptiert

Beantwortet
Parsing a Large Text File into Sections
Hi Amanda, This should work for you. It just reads the input file one line at a time and prints that line to an output file. ...

etwa 12 Jahre vor | 0

| akzeptiert

Beantwortet
Point inside triangle(s)?
So here's an answer (that works!) using dot products. Imagine one vertex of a triangle. The two edges stemming from that vert...

etwa 12 Jahre vor | 0

Mehr laden