Answered
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-stlwrit...

13 years ago | 0

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

13 years ago | 0

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

13 years ago | 2

| accepted

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

13 years ago | 2

| accepted

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

13 years ago | 0

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

13 years ago | 0

Answered
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) ...

13 years ago | 2

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

13 years ago | 1

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

13 years ago | 1

| accepted

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

13 years ago | 0

| accepted

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

13 years ago | 0

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

13 years ago | 0

| accepted

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

13 years ago | 1

| accepted

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

13 years ago | 2

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

13 years ago | 0

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

13 years ago | 1

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

13 years ago | 0

| accepted

Answered
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,...

13 years ago | 1

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

13 years ago | 0

| accepted

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

13 years ago | 0

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

13 years ago | 0

Answered
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(): ...

13 years ago | 0

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

13 years ago | 0

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

13 years ago | 0

Answered
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) ...

13 years ago | 0

| accepted

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

13 years ago | 0

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

13 years ago | 0

Answered
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); ...

13 years ago | 0

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

13 years ago | 0

| accepted

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

13 years ago | 0

Load more