已回答
converting .jpeg or matlab fig image to stl or cad format
This link provides a .m to write .stl files from matlab data. < http://www.mathworks.com/matlabcentral/fileexchange/20922-st...

11 years 前 | 0

已回答
how i can fix this axes error ?
You are not declaring axes(handles.plotaxes); after if val==2

11 years 前 | 0

已回答
How to change the shape of Static/Edit text box in GUI?
It is not possible to change the shape of edit boxes to circular.

11 years 前 | 2

| 已接受

已回答
Multiple Bode plots on same graph, how to plot phase ?
[mag_A phase_A] = bode(sys_A,W); [mag_B phase_B] = bode(sys_B,W); subplot(2,1,1) semilogx(W,mag_A);hold on semilog...

11 years 前 | 2

| 已接受

已回答
Hi, i have a AVR robotics kit,...and a usb programmer for programming it..i need to control the robot using matlab....ca u please help ????thanx in advance...
When you connect your kit to USB port, it'll be assign a COM number ( COM2, COM12...whatever, check it out). Create a serial ob...

11 years 前 | 0

已回答
improve speed --- image matrix replace
1st: initialize w1 w1 = zeros(nx,ny,3); The two inner loops do not make use of _k_, the outer loop index. Why do you hav...

11 years 前 | 0

已回答
changing position of numbers in a vector
Andrei's answer maybe the best choice, but in case you want to see what's behind: A=zeros(1,6); for k=1:size(A,2) ...

11 years 前 | 2

已回答
How can i import numerical data from non-tabular text file in MAtLAB?
fid=fopen('test.txt'); C=textscan(fid,'%s%s%s%s%s%s%s%s','delimiter','\n'); % read each line in string format fclose(fid...

11 years 前 | 1

已回答
How can i import numerical data from non-tabular text file in MAtLAB?
If test.txt is your txt file, the following code will create a cell C whose cell contains your data ( all of it ). You can itera...

11 years 前 | 1

| 已接受

已回答
what is the problem of my 'for loop' in a matrix?
You are using a struct as input variable for _isnan_ function. This _isnsn_ does not work with structs. Follow your code upwar...

11 years 前 | 0

| 已接受

已回答
Elementwise multiplication, function definition
Hi, try your code like this: [x, y] = meshgrid( linspace(0,400,400),linspace(0,30000,400) ); A1 = -8.269000000000000; ...

11 years 前 | 0

已回答
if i resize an image is there any possibility is there to loss any information in the original image?
Once you resize the image, obviously, you have to pay the price, and it comes to information. You'll be loosing pixels, since th...

11 years 前 | 0

| 已接受

已回答
Saving Plots to a Folder with the Title Name
name = 'my_name'; for k = 1:3 name_2 = strcat(name,num2str(k)); h=figure; plot(x(k),y(k)); % your data ther...

11 years 前 | 1

| 已接受

已回答
Displaying images in the axes of GUI
When showing the images, set the 'Parent' property of the imshow function to the handle of the axis. Ex: if you have axes tagge...

11 years 前 | 2

已回答
Problem plotting a 3-D function
Well, I think you are having a scale issue. Your z1 is right, and the way to plot your data as well is right, but bear in mind t...

11 years 前 | 0

已回答
Problem plotting a 3-D function
try to hold on the current figure and change your point of view: % Define the input grid clc, clear, close all [x, y]...

11 years 前 | 1

已回答
how to access Cell data
my_cell = cell(10,1); % write into a cell for k=1:size(my_cell,1) my_cell{k,1} = rand; end % read the c...

11 years 前 | 0

| 已接受

已回答
I want to add grid on my image in matlab GUI
Image Analyst is right. I simplified the code to this: I = imread('cameraman.tif'); imshow(I) hold on M = size(I,...

11 years 前 | 1

已回答
Displaying the size of cell array
The number of elements in _Template_ is small enough as to show them all. In case of _Records_, the numbers of elements is too b...

11 years 前 | 0

| 已接受

已回答
I want to add grid on my image in matlab GUI
You get a vertical line because you are plotting a vertical line. The values of both elements of your x array are the same ...

11 years 前 | 0

已回答
How to work on "for loop" to save different column variable values to single vector?
for i=1:4 VEd(k) = [Ed1(i) Ed2(i) Ed3(i) Ed4(i) Ed5(i) Ed6(i) Ed7(i) Ed8(i) Ed9(i) Ed10(i) Ed11(i) Ed12(i) Ed13(i) Ed14(i...

11 years 前 | 0

已回答
I have a mx3 matrix which is string format, I'm assigning this matrix by set(handles.listbox, 'String', matrix) into the listbox. How can I change space between the columns?
It would be clearer if you gave some extended code. If you have string data, you can add some blank spaces using horzcat(): ...

11 years 前 | 0

已回答
How to display result
Use the {}Code option, please, that would help a lot in telling code from comment. Did you try figure(2) before disp...

11 years 前 | 0

已回答
How to Create a tool so that with a click of a button the Image gets segmented
Create a GUI with the GUIDE tool help guide will tell you more. Once you create a simple GUI with a button or whatever...

11 years 前 | 0

已回答
Send SERIAL commands from MATLAB GUI to Arduino
I would delete the while.serial from arduino code and do it as: void loop() { if (Serial.available()>0) ...

11 years 前 | 0

| 已接受

已回答
Send SERIAL commands from MATLAB GUI to Arduino
Hello, the problem is not what Arduino sends to your PC serial port, but how you try to read it. What Matlab function are you us...

11 years 前 | 0

已回答
Importing a foler of CSV files into matlab
Are your CSVs in the working directory? my_csvs = dir('*.CSV') should return a struct array with a field called "name", hosting...

11 years 前 | 0

已回答
why code using parallel processing has longer running time than the other?
Try your code in this way: matlabpool open local 2 tic spmd x=magic(100); y=magic(100); ...

11 years 前 | 0

已回答
How to deal with for loop
N_matrices = 50; % number of matrices total = zeros( size(Z(1) ); % initialization of total a...

11 years 前 | 0

| 已接受

已回答
How to deal with for loop
N_matrices = 50; % number of matrices total = zeros( size(Z(1) ); % initialization of total addition f...

11 years 前 | 0

加载更多